Skip to content

Commit be8d888

Browse files
committed
gh-134291: Add unguarded-availability check to JIT builds
1 parent 8421b03 commit be8d888

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/jit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
114114
brew install llvm@${{ matrix.llvm }}
115115
export SDKROOT="$(xcrun --show-sdk-path)"
116+
export MACOSX_DEPLOYMENT_TARGET=10.15
116117
./configure --enable-experimental-jit --enable-universalsdk --with-universal-archs=universal2 ${{ matrix.debug && '--with-pydebug' || '' }}
117118
make all --jobs 4
118119
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3

Tools/jit/_targets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ async def _compile(
149149
"-fno-plt",
150150
# Don't call stack-smashing canaries that we can't find or patch:
151151
"-fno-stack-protector",
152+
# Error if symbols above the deployment target without guards
153+
"-Werror=unguarded-availability",
152154
"-std=c11",
153155
"-o",
154156
f"{o}",

0 commit comments

Comments
 (0)