Skip to content

Commit eafdf41

Browse files
committed
fixup! tc-build: Introduce '--muilticall'
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent e573a6b commit eafdf41

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tc_build/llvm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ def __init__(self):
589589

590590
self.cmake_defines['LLVM_BUILD_INSTRUMENTED'] = 'IR'
591591
self.cmake_defines['LLVM_BUILD_RUNTIME'] = 'OFF'
592-
self.cmake_defines['LLVM_LINK_LLVM_DYLIB'] = 'ON'
593592

594593
def configure(self):
595594
# The following defines are needed to avoid thousands of warnings
@@ -621,6 +620,13 @@ def configure(self):
621620
self.cmake_defines['CMAKE_C_FLAGS'] = ' '.join(cflags)
622621
self.cmake_defines['CMAKE_CXX_FLAGS'] = ' '.join(cxxflags)
623622

623+
# These are currently incompatible:
624+
# https://github.com/llvm/llvm-project/pull/133596
625+
# But that should not matter much in this case because multicall uses
626+
# much less disk space.
627+
if not self.multicall_is_enabled():
628+
self.cmake_defines['LLVM_LINK_LLVM_DYLIB'] = 'ON'
629+
624630
super().configure()
625631

626632
def generate_profdata(self):

0 commit comments

Comments
 (0)