Skip to content

Commit e2347d1

Browse files
committed
tc_build: llvm: Ensure LLVM_LINK_LLVM_DYLIB remains off
Currently, this is disabled by default but LLVM upstream is talking about flipping this value to ON for certain platform. It hurts the speed of the compiler, which is one of tc-build's primary focuses with the easy integration of PGO, BOLT, and LTO. Keep this option off to maintain the status quo. Link: https://discourse.llvm.org/t/rfc-llvm-link-llvm-dylib-should-default-to-on-on-posix-platforms/85908 Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 61954c3 commit e2347d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tc_build/llvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ def __init__(self):
3535
self.cmake_defines = {
3636
# Reduce dynamic dependencies
3737
'LLVM_ENABLE_LIBXML2': 'OFF',
38+
# While this option reduces build resources and disk space, it
39+
# increases start up time for the tools dynamically linked against
40+
# it and limits optimization opportunities for LTO, PGO, and BOLT.
41+
'LLVM_LINK_LLVM_DYLIB': 'OFF',
3842
}
3943
self.install_targets = []
4044
self.llvm_major_version = 0

0 commit comments

Comments
 (0)