[PATCH] D81778: [llvmbuild] Add optional_libraries, i.e. a dependency iff the target is enabled
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 17:08:54 PDT 2020
dsanders created this revision.
dsanders added reviewers: bogner, ddunbar.
Herald added a project: LLVM.
dsanders added a parent revision: D81777: [llvmbuild] --enable-optional-components should not be a substring match.
dsanders added a parent revision: D81773: [llvmbuild] Allow OptionalLibrary's to be enabled by default and disabled.
dsanders removed a parent revision: D81773: [llvmbuild] Allow OptionalLibrary's to be enabled by default and disabled.
Optional dependencies are promoted to required dependencies if the specified
library is enabled via --enable-optional-components or enabled_component = 1,
or dropped if the specified library is disabled. Of course, another mechanism
(such as preprocessor macros) needs to be used so that there are no unresolved
symbols.
It's a warning to specify a library that's not optional in optional_libraries.
Such a dependency will be treated as if it were provided via required_libraries.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81778
Files:
llvm/test/LLVMBuild/optional-library/Input/LLVMBuild.txt
llvm/test/LLVMBuild/optional-library/Input/lib/IR/Function.cpp
llvm/test/LLVMBuild/optional-library/Input/lib/LLVMBuild.txt
llvm/test/LLVMBuild/optional-library/optional-library.test
llvm/utils/llvm-build/llvmbuild/componentinfo.py
llvm/utils/llvm-build/llvmbuild/main.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81778.270549.patch
Type: text/x-patch
Size: 16093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200613/238e1179/attachment.bin>
More information about the llvm-commits
mailing list