aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-09 14:43:08 +0530
committerGitHub <noreply@github.com>2018-05-09 14:43:08 +0530
commit43f9318afa172beec94829d6ba8721e653f4eefb (patch)
tree0043f14f44059ef02c6cd3c2f51bc55b51656165 /docs
parentc5865c50c444912afd92c2feb94d8739874a62b2 (diff)
downloadmeson-43f9318afa172beec94829d6ba8721e653f4eefb.zip
meson-43f9318afa172beec94829d6ba8721e653f4eefb.tar.gz
meson-43f9318afa172beec94829d6ba8721e653f4eefb.tar.bz2
Reference-manual: compiler checks
Document that compiler checks are self-contained and do not add arguments from anywhere else.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 776703c..316c0b5 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1636,6 +1636,12 @@ The following keyword arguments can be used:
`sizeof`, `has_type`, `has_function`, `has_member`, `has_members`,
`has_header_symbol`.
+**Note:** These compiler checks do not use compiler arguments added with
+`add_*_arguments()`, via `-Dlang_args` on the command-line, or through
+`CFLAGS`/`LDFLAGS`, etc in the environment. Hence, you can trust that
+the tests will be fully self-contained, and won't fail because of custom
+flags added by other parts of the build file or by users.
+
Note that if you have a single prefix with all your dependencies, you
might find it easier to append to the environment variables
`C_INCLUDE_PATH` with GCC/Clang and `INCLUDE` with MSVC to expand the