diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-02-16 11:06:08 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-02-18 10:57:20 -0800 |
commit | b03039ec9d8fe01ff06c28972e4dd46421e4a238 (patch) | |
tree | e63401c4bbf302482aed0703981185686e77bc3d /mesonbuild/mesonlib/universal.py | |
parent | c24a0f852489124fa002bdc90b5753547899b1cb (diff) | |
download | meson-b03039ec9d8fe01ff06c28972e4dd46421e4a238.zip meson-b03039ec9d8fe01ff06c28972e4dd46421e4a238.tar.gz meson-b03039ec9d8fe01ff06c28972e4dd46421e4a238.tar.bz2 |
allow build.b_* options
These continue to be ignored as they always have, but no longer raise an
error.
Fixes: #8354
Diffstat (limited to 'mesonbuild/mesonlib/universal.py')
-rw-r--r-- | mesonbuild/mesonlib/universal.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py index 19e329d..1b5b86c 100644 --- a/mesonbuild/mesonlib/universal.py +++ b/mesonbuild/mesonlib/universal.py @@ -1910,7 +1910,6 @@ def _classify_argument(key: 'OptionKey') -> OptionType: """Classify arguments into groups so we know which dict to assign them to.""" if key.name.startswith('b_'): - assert key.machine is MachineChoice.HOST, str(key) return OptionType.BASE elif key.lang is not None: return OptionType.COMPILER @@ -2029,7 +2028,7 @@ class OptionKey: subproject, raw2 = '', raw if raw2.startswith('build.'): - raw3 = raw2.lstrip('build.') + raw3 = raw2.split('.', 1)[1] for_machine = MachineChoice.BUILD else: raw3 = raw2 |