diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-03-21 21:26:28 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-03-27 14:45:42 +0000 |
commit | b565eff084faeea8a8952ec2c1fe40483705aaef (patch) | |
tree | 7bc1938ef89334786fa62d49d901a02e7d602985 | |
parent | a69f7b0b5ad94fb6d89b659349f704c9153175d0 (diff) | |
download | meson-b565eff084faeea8a8952ec2c1fe40483705aaef.zip meson-b565eff084faeea8a8952ec2c1fe40483705aaef.tar.gz meson-b565eff084faeea8a8952ec2c1fe40483705aaef.tar.bz2 |
Add release note snippit for CPPFLAGS handing [skip ci]
-rw-r--r-- | docs/markdown/snippets/preproc-flags.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/preproc-flags.md b/docs/markdown/snippets/preproc-flags.md new file mode 100644 index 0000000..a5e9e83 --- /dev/null +++ b/docs/markdown/snippets/preproc-flags.md @@ -0,0 +1,12 @@ +## (C) Preprocessor flag handling + +Meson previously stored `CPPFLAGS` and per-language compilation flags +separately. (That latter would come from `CFLAGS`, `CXXFLAGS`, etc., along with +`<lang>_args` options whether specified no the command-line interface (`-D..`), +`meson.build` (`default_options`), or cross file (`[properties]`).) This was +mostly unobservable, except for certain preprocessor-only checks like +`check_header` would only use the preprocessor flags, leading to confusion if +some `-isystem` was in `CFLAGS` but not `CPPFLAGS`. Now, they are lumped +together, and `CPPFLAGS`, for the languages which are deemed to care to about, +is just another source of compilation flags along with the others already +listed. |