@@ -109,13 +109,19 @@ jobs:
109
109
repository : mdboom/pyperformance
110
110
path : pyperformance
111
111
ref : ${{ env.PYPERFORMANCE_HASH }}
112
+ - name : Build with clang
113
+ if : ${{ inputs.clang }}
114
+ run : |
115
+ Write-Error "Using the latest clang compiler on Windows isn't currently supported by bench-runner"
116
+ exit 1
112
117
- name : Build Python
113
118
if : ${{ steps.should_run.outputs.should_run != 'false' }}
114
119
run : |
115
120
cd cpython
116
121
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
117
122
# Copy the build products to a place that libraries can find them.
118
123
Copy-Item -Path $env:BUILD_DEST -Destination "libs" -Recurse
124
+ $env:BUILD_DEST\python.exe -VV
119
125
- name : Install pyperformance
120
126
if : ${{ steps.should_run.outputs.should_run != 'false' }}
121
127
run : |
@@ -198,12 +204,17 @@ jobs:
198
204
repository : mdboom/pyperformance
199
205
path : pyperformance
200
206
ref : ${{ env.PYPERFORMANCE_HASH }}
207
+ - name : Build with clang
208
+ if : ${{ inputs.clang }}
209
+ run : |
210
+ echo "CC=clang-19" >> $GITHUB_ENV
201
211
- name : Build Python
202
212
if : ${{ steps.should_run.outputs.should_run != 'false' }}
203
213
run : |
204
214
cd cpython
205
215
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }}
206
216
make ${{ runner.arch == 'ARM64' && '-j' || '-j4' }}
217
+ ./python -VV
207
218
- name : Install pyperformance
208
219
if : ${{ steps.should_run.outputs.should_run != 'false' }}
209
220
run : |
@@ -299,12 +310,20 @@ jobs:
299
310
if : ${{ steps.should_run.outputs.should_run != 'false' }}
300
311
run : |
301
312
echo "PKG_CONFIG_PATH=$(brew --prefix [email protected] )/lib/pkgconfig" >> $GITHUB_ENV
313
+ - name : Setup latest clang, if requested
314
+ if : ${{ inputs.clang }}
315
+ run : |
316
+ echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> $GITHUB_ENV
317
+ echo "CC=$(brew --prefix llvm)/bin/clang" >> $GITHUB_ENV
318
+ echo "LDFLAGS=-L$(brew --prefix llvm)/lib" >> $GITHUB_ENV
319
+ echo "CFLAGS=-I$(brew --prefix llvm)/include" >> $GITHUB_ENV
302
320
- name : Build Python
303
321
if : ${{ steps.should_run.outputs.should_run != 'false' }}
304
322
run : |
305
323
cd cpython
306
324
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }}
307
325
make -j4
326
+ ./python.exe -VV
308
327
# On macos ARM64, actions/setup-python isn't available, so we rely on a
309
328
# pre-installed homebrew one, used through a venv
310
329
- name : Install pyperformance
0 commit comments