Skip to content

MesonToolchain reads conf tools.build:defines#16172

Merged
czoido merged 2 commits into
conan-io:develop2from
franramirez688:frm/feature_add_build_defines
Apr 29, 2024
Merged

MesonToolchain reads conf tools.build:defines#16172
czoido merged 2 commits into
conan-io:develop2from
franramirez688:frm/feature_add_build_defines

Conversation

@franramirez688

@franramirez688 franramirez688 commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

Changelog: Bugfix: Make MesonToolchain listen to tools.build:defines conf variable.
Docs: conan-io/docs#3709
Closes: #16169

@czoido czoido merged commit 2326609 into conan-io:develop2 Apr 29, 2024
@paulharris

Copy link
Copy Markdown
Contributor

Did you also update the docs?
Specifically:

here (does not mention tools.build:defines)
https://docs.conan.io/2/reference/tools/meson/mesontoolchain.html#conf

And here:
https://docs.conan.io/2/reference/config_files/global_conf.html

tools.build:cxxflags: List of extra CXX flags used by different toolchains like CMakeToolchain, AutotoolsToolchain and MesonToolchain
tools.build:defines: List of extra definition flags used by different toolchains like CMakeToolchain and AutotoolsToolchain

It does not mention MesonToolchain in the list of toolchains - Meson IS mentioned in cxxflags, so it should also be mentioned in defines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] MesonToolchain ignores tools.build:defines ... and tc.preprocess_definitions quote problems

6 participants