From 0deab2ee9efc2ffe9e43f2787611e34656e6a304 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 23 Nov 2020 23:03:35 +0100 Subject: 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. --- docs/markdown/snippets/compiler_method_internal_deps.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/compiler_method_internal_deps.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1