Skip to content

Commit 3c42502

Browse files
authored
Merge pull request #354 from Fidget-Spinner/tail_call
Add `--with-tail-call-interp` option for clang
2 parents 164361b + d1c351d commit 3c42502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bench_runner/flags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Flag:
1717
Flag("tier2", "PYTHON_UOPS", "tier 2 interpreter", "T2"),
1818
Flag("jit", "JIT", "JIT", "JIT"),
1919
Flag("nogil", "NOGIL", "free threading", "NOGIL"),
20-
Flag("clang", "CLANG", "build with latest clang", "CLANG"),
20+
Flag("clang", "CLANG", "build with latest clang and tailcall", "CLANG"),
2121
]
2222

2323

bench_runner/templates/_benchmark.src.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
if: ${{ steps.should_run.outputs.should_run != 'false' }}
212212
run: |
213213
cd cpython
214-
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }}
214+
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} ${{ inputs.clang == true && '--with-tail-call-interp' || '' }}
215215
make ${{ runner.arch == 'ARM64' && '-j' || '-j4' }}
216216
./python -VV
217217
- name: Install pyperformance
@@ -320,7 +320,7 @@ jobs:
320320
if: ${{ steps.should_run.outputs.should_run != 'false' }}
321321
run: |
322322
cd cpython
323-
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }}
323+
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=full' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} ${{ inputs.clang == true && '--with-tail-call-interp' || '' }}
324324
make -j4
325325
./python.exe -VV
326326
# On macos ARM64, actions/setup-python isn't available, so we rely on a

0 commit comments

Comments
 (0)