Skip to content

Commit

Permalink
seL4: prefix LLVM's tools with supported seL4 target triples
Browse files Browse the repository at this point in the history
Mainly to get binutils symlinked as expected by the seL4's
cmake build system.
  • Loading branch information
heshamelmatary committed Jul 24, 2023
1 parent 69fd591 commit 05d76cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pycheribuild/projects/cross/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
CheriBSDTargetInfo,
CompilationTargets,
FreeBSDTargetInfo,
Sel4MorelloTargetInfo,
Sel4TargetInfo,
)
from ...config.target_info import AbstractProject, CompilerType, CrossCompileTarget
from ...processutils import CompilerInfo
Expand Down Expand Up @@ -547,6 +549,8 @@ def triple_prefixes_for_binaries(self) -> "Iterable[str]":
include_version=False),
CheriBSDTargetInfo.triple_for_target(CompilationTargets.CHERIBSD_X86_64, self.config,
include_version=False),
Sel4TargetInfo.triple_for_target(CompilationTargets.SEL4_RISCV64, self.config,
include_version=False),
]
return [x + "-" for x in triples]

Expand Down Expand Up @@ -576,6 +580,8 @@ def triple_prefixes_for_binaries(self) -> "Iterable[str]":
triples = [
CheriBSDMorelloTargetInfo.triple_for_target(CompilationTargets.CHERIBSD_MORELLO_PURECAP, self.config,
include_version=False),
Sel4MorelloTargetInfo.triple_for_target(CompilationTargets.SEL4_MORELLO_NO_CHERI, self.config,
include_version=False),
]
return [x + "-" for x in triples]

Expand Down

0 comments on commit 05d76cd

Please sign in to comment.