Skip to content

Commit 05d76cd

Browse files
seL4: prefix LLVM's tools with supported seL4 target triples
Mainly to get binutils symlinked as expected by the seL4's cmake build system.
1 parent 69fd591 commit 05d76cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pycheribuild/projects/cross/llvm.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
CheriBSDTargetInfo,
4242
CompilationTargets,
4343
FreeBSDTargetInfo,
44+
Sel4MorelloTargetInfo,
45+
Sel4TargetInfo,
4446
)
4547
from ...config.target_info import AbstractProject, CompilerType, CrossCompileTarget
4648
from ...processutils import CompilerInfo
@@ -547,6 +549,8 @@ def triple_prefixes_for_binaries(self) -> "Iterable[str]":
547549
include_version=False),
548550
CheriBSDTargetInfo.triple_for_target(CompilationTargets.CHERIBSD_X86_64, self.config,
549551
include_version=False),
552+
Sel4TargetInfo.triple_for_target(CompilationTargets.SEL4_RISCV64, self.config,
553+
include_version=False),
550554
]
551555
return [x + "-" for x in triples]
552556

@@ -576,6 +580,8 @@ def triple_prefixes_for_binaries(self) -> "Iterable[str]":
576580
triples = [
577581
CheriBSDMorelloTargetInfo.triple_for_target(CompilationTargets.CHERIBSD_MORELLO_PURECAP, self.config,
578582
include_version=False),
583+
Sel4MorelloTargetInfo.triple_for_target(CompilationTargets.SEL4_MORELLO_NO_CHERI, self.config,
584+
include_version=False),
579585
]
580586
return [x + "-" for x in triples]
581587

0 commit comments

Comments
 (0)