From b565eff084faeea8a8952ec2c1fe40483705aaef Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 21 Mar 2019 21:26:28 -0400 Subject: Add release note snippit for CPPFLAGS handing [skip ci] --- docs/markdown/snippets/preproc-flags.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/markdown/snippets/preproc-flags.md (limited to 'docs/markdown/snippets') 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 +`_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. -- cgit v1.1