8000 Fix types and require LLVM 16 · python/cpython@ffac31b · GitHub
[go: up one dir, main page]

Skip to content

Commit ffac31b

Browse files
committed
Fix types and require LLVM 16
1 parent 5137145 commit ffac31b

File tree

3 files changed

+153
-75
lines changed

3 files changed

+153
-75
lines changed

.github/workflows/jit.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: JIT
22
on: push
33
jobs:
44
jit:
5-
name: ${{ matrix.target }} (${{ matrix.debug && 'Debug' || 'Release' }}, LLVM ${{ matrix.llvm }})
5+
name: ${{ matrix.target }} (${{ matrix.debug && 'Debug' || 'Release' }})
66
runs-on: ${{ matrix.runner }}
77
strategy:
88
fail-fast: false
@@ -21,8 +21,6 @@ jobs:
2121
- true
2222
- false
2323
llvm:
24-
- 14
25-
- 15
2624
- 16
2725
include:
2826
- target: i686-pc-windows-msvc/msvc
@@ -68,7 +66,6 @@ jobs:
6866
exclude: test_tools
6967
env:
7068
CC: ${{ matrix.compiler }}
71-
PYTHON_LLVM_VERSION: ${{ matrix.llvm }}
7269
steps:
7370
- uses: actions/checkout@v3
7471
- uses: actions/setup-python@v4
@@ -80,7 +77,6 @@ jobs:
8077
echo "::group::Install LLVM"
8178
sudo apt purge --auto-remove llvm python3-lldb-14 llvm-14
8279
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
83-
${{ matrix.debug == false && matrix.llvm == 14 && matrix.compiler == 'clang' && 'sudo apt install --yes libclang-rt-14-dev' || '' }}
8480
echo "::endgroup::"
8581
echo "::group::Configure Python (Build)"
8682
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
@@ -113,7 +109,6 @@ jobs:
113109
echo "::group::Install LLVM"
114110
sudo apt purge --auto-remove llvm python3-lldb-14 llvm-14
115111
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
116-
${{ matrix.debug == false && matrix.llvm == 14 && matrix.compiler == 'clang' && 'sudo apt install --yes libclang-rt-14-dev' || '' }}
117112
echo "::endgroup::"
118113
echo "::group::Configure Python"
119114
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"

Tools/jit/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ This branch has an (always-on) JIT compiler. While most everything you already k
1111

1212
While the JIT compiler does not require end users to install any third-party dependencies, part of it must be *built* using LLVM. It is *not* required for you to build the rest of CPython using LLVM, or the even the same version of LLVM (in fact, this is uncommon).
1313

14-
LLVM versions 14, 15, and 16 all work. Both `clang` and `llvm-readobj` need to be installed and discoverable (version suffixes, like `clang-16`, are okay). It's highly recommended that you also have `llvm-objdump` available, since this allows the build script to dump human-readable assembly for the generated code.
14+
LLVM version 16 is required. Both `clang` and `llvm-readobj` need to be installed and discoverable (version suffixes, like `clang-16`, are okay). It's highly recommended that you also have `llvm-objdump` available, since this allows the build script to dump human-readable assembly for the generated code.
1515

1616
It's easy to install all of the required tools:
1717

1818
#### Linux
1919

2020
Install LLVM 16 on Ubuntu/Debian:
2121

22-
```
22+
```sh
2323
wget https://apt.llvm.org/llvm.sh
2424
chmod +x llvm.sh
2525
sudo ./llvm.sh 16
@@ -39,7 +39,7 @@ Homebrew won't add any of the tools to your `$PATH`. That's okay; the build scri
3939

4040
LLVM 16 can be installed on Windows by using the installers published on [LLVM's GitHub releases page](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.6).
4141

42-
[Here's a recent one.](https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.4/LLVM-16.0.4-win64.exe)
42+
[Here's a recent one.](https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.6/LLVM-16.0.6-win64.exe) **When installing, be sure to select the option labeled "Add LLVM to the system PATH".**
4343

4444
### Building
4545

0 commit comments

Comments
 (0)
0