summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-10-30 19:03:31 (GMT)
committerGitHub <noreply@github.com>2024-10-30 19:03:31 (GMT)
commitc29bbe21018dc1602ea70f34621de67cce782ed2 (patch)
tree9c1b63c366e2d16db7c208b0bf91b576131f8e0d /.github
parent597d814334742dde386a4d2979b9418aee6fcaba (diff)
downloadcpython-c29bbe21018dc1602ea70f34621de67cce782ed2.zip
cpython-c29bbe21018dc1602ea70f34621de67cce782ed2.tar.gz
cpython-c29bbe21018dc1602ea70f34621de67cce782ed2.tar.bz2
GH-125498: Update JIT builds to use LLVM 19 and preserve_none (GH-125499)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/jit.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml
index 754f179..5fb599b 100644
--- a/.github/workflows/jit.yml
+++ b/.github/workflows/jit.yml
@@ -61,7 +61,7 @@ jobs:
- true
- false
llvm:
- - 18
+ - 19
include:
- target: i686-pc-windows-msvc/msvc
architecture: Win32
@@ -121,10 +121,15 @@ jobs:
choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
+ # The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
+ # This is a bug in the macOS runner image where the pre-installed Python is installed in the same
+ # directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
+ # the symlink to the pre-installed Python so that the Homebrew Python is used instead.
- name: Native macOS
if: runner.os == 'macOS'
run: |
brew update
+ find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
brew install llvm@${{ matrix.llvm }}
SDKROOT="$(xcrun --show-sdk-path)" \
./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }}
@@ -165,6 +170,10 @@ jobs:
name: Free-Threaded (Debug)
needs: interpreter
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ llvm:
+ - 19
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@@ -172,8 +181,8 @@ jobs:
python-version: '3.11'
- name: Build with JIT enabled and GIL disabled
run: |
- sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 18
- export PATH="$(llvm-config-18 --bindir):$PATH"
+ sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
+ export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
./configure --enable-experimental-jit --with-pydebug --disable-gil
make all --jobs 4
- name: Run tests