[PATCH] D89177: [cmake] Add support for multiple distributions
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 00:07:42 PDT 2020
smeenai added a comment.
Reading up on the Ninja multi-config generator a bit, you can define your own build types, so you should be able to create e.g. one build type for LTO and another for PIC. You'd still need some external logic to define that you use the LTO mode for executables and the PIC mode for libraries, but the multiple distribution support should work nicely in conjunction with that.
Unfortunately, I don't think that'll work for my RTTI case, since LLVM's flag additions for enabling or disabling (based on `LLVM_ENABLE_RTTI`) will override any flags you specify for your build type. (Maybe there's a reasonable way to tweak the build system to support that case though.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89177/new/
https://reviews.llvm.org/D89177
More information about the cfe-commits
mailing list