Skip to content

Commit

Permalink
Use -morello-bounded-memargs=caller-only as appropriate
Browse files Browse the repository at this point in the history
When CheriBSD uses the new function argument ABI, use it for building
other things.
  • Loading branch information
brooksdavis committed Nov 1, 2023
1 parent e534a6f commit 9d3fdc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycheribuild/config/compilation_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ def essential_compiler_and_linker_flags_impl(cls, instance: "CheriBSDTargetInfo"
if version is None or version >= 20220511:
# Use new var-args ABI
result.extend(["-Xclang", "-morello-vararg=new"])
if version is None or version >= 20230804:
# Use new function call ABI
result.extend(["-Xclang", "-morello-bounded-memargs=caller-only"])
if xtarget.is_cheri_purecap([CPUArchitecture.AARCH64]) and version is not None and version < 20220511:
# Use emulated TLS on older purecap
result.append("-femulated-tls")
Expand Down

0 comments on commit 9d3fdc3

Please sign in to comment.