File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments