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 12, 2023
1 parent a932caa commit a00287a
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 @@ -39,6 +39,8 @@
from ...config.compilation_targets import (
CheriBSDMorelloTargetInfo,
CheriBSDTargetInfo,
Sel4TargetInfo,
Sel4MorelloTargetInfo,
CompilationTargets,
FreeBSDTargetInfo,
)
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),
Sel4TargetInfo.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 a00287a

Please sign in to comment.