Move LLVM_ENABLE_ABI_BREAKING_CHECKS variables to their own file so that you don't have to link Error.o and all of its dependencies.
Tested by building everything.
Differential D67387
Move LLVM_ENABLE_ABI_BREAKING_CHECKS to its own file echristo on Sep 10 2019, 1:29 AM. Authored by
Details Move LLVM_ENABLE_ABI_BREAKING_CHECKS variables to their own file so that you don't have to link Error.o and all of its dependencies. Tested by building everything.
Diff Detail
Event TimelineComment Actions Awesome, thanks Eric! This is very useful for projects that want to use LLVM Support library but also care about codesize. Comment Actions Might be worth having some more detail in the commit message to explain why -ffunction-sections/-gc-sections isn't sufficient to remove the binary size increase. (also, might be worth tracking down the global initializers that were causing this to have a binary size cost - seeing if those can be removed too) |