File tree 2 files changed +18
-4
lines changed 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -454,11 +454,13 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
454
454
455
455
# Allow users to enable the experimental JIT on 3.13+
456
456
if [[ -n " ${PYTHON_MEETS_MINIMUM_VERSION_3_13} " ]]; then
457
+ CONFIGURE_FLAGS=" ${CONFIGURE_FLAGS} --enable-experimental-jit=yes-off"
457
458
458
- # The JIT build is failing on macOS due to compiler errors
459
- # Only enable on Linux / 3.13 until that's fixed upstream
460
- if [[ " ${PYBUILD_PLATFORM} " != " macos" ]]; then
461
- CONFIGURE_FLAGS=" ${CONFIGURE_FLAGS} --enable-experimental-jit=yes-off"
459
+ # The JIT build process is separate from the normal build and doesn't read our standard
460
+ # compiler flags so we need to patch our Clang toolchain into the includes.
461
+ # This is only necessary on macOS.
462
+ if [[ " ${PYBUILD_PLATFORM} " = " macos" ]]; then
463
+ patch -p1 -i " ${ROOT} /patch-jit-include-flags.patch"
462
464
fi
463
465
464
466
if [[ -n " ${PYTHON_MEETS_MAXIMUM_VERSION_3_13} " ]]; then
Original file line number Diff line number Diff line change
1
+ diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py
2
+ index 7eb433e2a5b..cd838daa8c5 100644
3
+ --- a/Tools/jit/_targets.py
4
+ +++ b/Tools/jit/_targets.py
5
+ @@ -113,6 +113,7 @@ async def _compile(
6
+ "-D_PyJIT_ACTIVE",
7
+ "-D_Py_JIT",
8
+ "-I.",
9
+ + f"-I${os.environ['TOOLS_PATH']}/deps/include",
10
+ f"-I{CPYTHON / 'Include'}",
11
+ f"-I{CPYTHON / 'Include' / 'internal'}",
12
+ f"-I{CPYTHON / 'Include' / 'internal' / 'mimalloc'}",
You can’t perform that action at this time.
0 commit comments