Skip to content

Commit 33b5afa

Browse files
committed
Support clang on Windows
1 parent e919dcd commit 33b5afa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bench_runner/templates/_benchmark.src.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,11 @@ jobs:
106106
repository: mdboom/pyperformance
107107
path: pyperformance
108108
ref: ${{ env.PYPERFORMANCE_HASH }}
109-
- name: Build with clang
110-
if: ${{ inputs.clang }}
111-
run: |
112-
Write-Error "Using the latest clang compiler on Windows isn't currently supported by bench-runner"
113-
exit 1
114109
- name: Build Python
115110
if: ${{ steps.should_run.outputs.should_run != 'false' }}
116111
run: |
117112
cd cpython
118-
PCbuild\build.bat ($env:BUILD_FLAGS -split ' ') ${{ inputs.pgo == true && '--pgo' || '' }} ${{ inputs.jit == true && '--experimental-jit' || '' }} ${{ inputs.tier2 == true && '--experimental-jit-interpreter' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} -c Release
113+
PCbuild\build.bat ($env:BUILD_FLAGS -split ' ') ${{ inputs.pgo == true && '--pgo' || '' }} ${{ inputs.jit == true && '--experimental-jit' || '' }} ${{ inputs.tier2 == true && '--experimental-jit-interpreter' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} -c Release ${{ inputs.clang == true && '"/p:PlatformToolset=clangcl"' }}
119114
# Copy the build products to a place that libraries can find them.
120115
Copy-Item -Path $env:BUILD_DEST -Destination "libs" -Recurse
121116
- name: Install pyperformance
@@ -125,6 +120,7 @@ jobs:
125120
- name: Running pyperformance
126121
if: ${{ steps.should_run.outputs.should_run != 'false' }}
127122
run: |
123+
cpython\$env:BUILD_DEST\python.exe -VV
128124
venv\Scripts\python.exe -m bench_runner run_benchmarks benchmark cpython\$env:BUILD_DEST\python.exe ${{ inputs.fork }} ${{ inputs.ref }} ${{ inputs.benchmarks || 'all' }} "${{ env.flags }}" --run_id ${{ github.run_id }}
129125
# Pull again, since another job may have committed results in the meantime
130126
- name: Pull benchmarking

0 commit comments

Comments
 (0)