Open notpeelz opened 1 year ago
Hi,
I've got the exact same issue, the following fixes the issue but i am not sure it's the correct answer.
E.g setting from top level project -D<subproject>:c_args="whatever"
does not have any effect w/ meson 1.3.0 (i.e. whatever
does not appear on c compile argument while compile in verbose) ! Is this the expected behavior ?
--- a/mesonbuild/modules/rust.py
+++ b/mesonbuild/modules/rust.py
@@ -241,7 +241,7 @@ class RustModule(ExtensionModule):
depends.append(s)
# We only want include directories and defines, other things may not be valid
- cargs = state.get_option('args', state.subproject, lang='c')
+ cargs = state.get_option('args', lang='c')
assert isinstance(cargs, list), 'for mypy'
for a in itertools.chain(state.global_args.get('c', []), state.project_args.get('c', []), cargs):
if a.startswith(('-I', '/I', '-D', '/D', '-U', '/U')):
can confirm the issue still exist (meson 1.3.2)
I just hit that issue when trying to build mesa as a subproject, meson 1.4.1
Describe the bug I get this error when I use
rust.bindgen()
from within a subproject:To Reproduce
This doesn't reproduce on meson 1.2.3. I believe this bug was introduced by #12283
system parameters
python --version
: 3.11.5meson --version
: 1.3.0.rc3ninja --version
: 1.11.1