Replies: 1 comment 1 reply
-
On the command line: meson setup -Dc_args=...` meson setup builddir --native-file native.ini does work for me. Did you do a clean build after changing the native file? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to set a preprocessor define only for my
-Dbuildtype=debug
Mesonsetup
.Since
meson setup
has no--c_args
or some such, I figured I'd make a--native-file native.ini
instead, which looked like this:This works but warns: DEPRECATION: c_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
However, changing the file to:
gets rid of the warning but also no longer has
-DSOMETHING
applied in the newly-generatedcompile_commands.json
.Is that a typo in the warning message, or a bug, or something I'm not grokking? =)
Beta Was this translation helpful? Give feedback.
All reactions