Skip to content

Commit d76d264

Browse files
committed
Reserve the frame pointer in JIT code
1 parent f11f5eb commit d76d264

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tools/jit/_targets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ async def _compile(
158158
# code than -O3). As a nice benefit, it uses less memory too:
159159
"-Os",
160160
"-S",
161+
"-Xclang", f"-mframe-pointer={'all' if opname == 'shim' else 'reserved'}",
161162
# Shorten full absolute file paths in the generated code (like the
162163
# __FILE__ macro and assert failure messages) for reproducibility:
163164
f"-ffile-prefix-map={CPYTHON}=.",

0 commit comments

Comments
 (0)