Skip to content

Commit b8cafe7

Browse files
committed
fixup! tc_build: Add basic support for building Rust
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 2efc7f0 commit b8cafe7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tc_build/llvm.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,20 @@ def configure(self):
519519
runtime_distribution_components = []
520520
if llvm_build_tools:
521521
distribution_components += [
522+
'llc',
522523
'llvm-ar',
524+
'llvm-as',
525+
'llvm-cov',
526+
'llvm-dis',
527+
'llvm-link',
523528
'llvm-nm',
524529
'llvm-objcopy',
525530
'llvm-objdump',
526531
'llvm-ranlib',
527532
'llvm-readelf',
533+
'llvm-size',
528534
'llvm-strip',
535+
'opt',
529536
]
530537
# If multicall is enabled, we need to add all possible tools to the
531538
# distribution components list to prevent them from being built as
@@ -545,6 +552,8 @@ def configure(self):
545552
distribution_components += [item for item in self.llvm_driver_binaries('clang') if item not in distribution_components]
546553
if self.project_is_enabled('lld'):
547554
distribution_components.append('lld')
555+
if self.project_is_enabled('polly'):
556+
distribution_components.append('PollyISL')
548557
if build_compiler_rt:
549558
distribution_components.append('llvm-profdata')
550559
if self.llvm_major_version >= LLVM_VER_FOR_RUNTIMES:

0 commit comments

Comments
 (0)