From ea4863f0e0619c1549a5347ae3d956996d46f258 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 11 Jan 2025 09:43:14 +0800 Subject: [PATCH] Use full LTO for all builds --- bench_runner/templates/_benchmark.src.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench_runner/templates/_benchmark.src.yml b/bench_runner/templates/_benchmark.src.yml index c63f8e1f..f59ebefc 100644 --- a/bench_runner/templates/_benchmark.src.yml +++ b/bench_runner/templates/_benchmark.src.yml @@ -211,7 +211,7 @@ jobs: if: ${{ steps.should_run.outputs.should_run != 'false' }} run: | cd cpython - ./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' || '' }} + ./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' || '' }} make ${{ runner.arch == 'ARM64' && '-j' || '-j4' }} ./python -VV - name: Install pyperformance @@ -320,7 +320,7 @@ jobs: if: ${{ steps.should_run.outputs.should_run != 'false' }} run: | cd cpython - ./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' || '' }} + ./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' || '' }} make -j4 ./python.exe -VV # On macos ARM64, actions/setup-python isn't available, so we rely on a