Skip to content

Commit 6c72f6f

Browse files
committed
fixup! tc-build: Introduce '--multicall'
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 7a7de41 commit 6c72f6f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tc_build/llvm.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,39 @@ def configure(self):
513513
'llvm-readelf',
514514
'llvm-strip',
515515
]
516+
# If multicall is enabled, we need to add all possible tools to the
517+
# distribution components list to prevent them from being built as
518+
# standalone tools, which may break the build for tools like
519+
# llvm-symbolizer because they need LLVMDebuginfod but it is not
520+
# linked in that configuration. While this does build a little more
521+
# code for the 'distribution' target, it should result in only a
522+
# slight increase in installation size due to being a multicall
523+
# binary.
524+
if self.multicall_is_enabled():
525+
distribution_components += [
526+
'dsymutil',
527+
'llvm-cgdata',
528+
'llvm-cxxfilt',
529+
'llvm-debuginfod',
530+
'llvm-debuginfod-find',
531+
'llvm-dwp',
532+
'llvm-gsymutil',
533+
'llvm-ifs',
534+
'llvm-libtool-darwin',
535+
'llvm-lipo',
536+
'llvm-ml',
537+
'llvm-rc',
538+
'llvm-readobj',
539+
'llvm-size',
540+
'llvm-symbolizer',
541+
'sancov',
542+
]
516543
if self.project_is_enabled('bolt'):
517544
distribution_components.append('bolt')
518545
if self.project_is_enabled('clang'):
519546
distribution_components += ['clang', 'clang-resource-headers']
547+
if self.multicall_is_enabled():
548+
distribution_components += ['clang-installapi', 'clang-scan-deps']
520549
if self.project_is_enabled('lld'):
521550
distribution_components.append('lld')
522551
if build_compiler_rt:

0 commit comments

Comments
 (0)