diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-23 23:03:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 00:03:35 +0200 |
commit | 0deab2ee9efc2ffe9e43f2787611e34656e6a304 (patch) | |
tree | fd60e29d4d91a6d566af3a0bfec1f8f6db0c2714 /docs | |
parent | b53505a9dc2e82a5040d3427246935c50b63184b (diff) | |
download | meson-0deab2ee9efc2ffe9e43f2787611e34656e6a304.zip meson-0deab2ee9efc2ffe9e43f2787611e34656e6a304.tar.gz meson-0deab2ee9efc2ffe9e43f2787611e34656e6a304.tar.bz2 |
compiler: allow non-built internal dependencies as arguments
Allow methods on the compiler object to receive internal dependencies,
as long as they only specify compiler/linker arguments or other
dependencies that satisfy the same requirements.
This is useful if you're using internal dependencies to add special
"-D" flags such as -DNCURSES_WIDECHAR, -D_XOPEN_SOURCE_EXTENDED or
-DGLIB_STATIC_COMPILATION.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/compiler_method_internal_deps.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/snippets/compiler_method_internal_deps.md b/docs/markdown/snippets/compiler_method_internal_deps.md new file mode 100644 index 0000000..bde6b4f --- /dev/null +++ b/docs/markdown/snippets/compiler_method_internal_deps.md @@ -0,0 +1,6 @@ +## Passing internal dependencies to the compiler object + +Methods on the compiler object (such as `compiles`, `links`, `has_header`) +can be passed dependencies returned by `declare_dependency`, as long as they +only specify compiler/linker arguments or other dependencies that satisfy +the same requirements. |