Add SDKROOT setting for building arm64, universal2 on 10.15
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
name: Manual Tinkering
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Start SSH session
|
||||
uses: luchihoratiu/debug-via-ssh@main
|
||||
with:
|
||||
NGROK_AUTH_TOKEN: ${{ secrets.JOERICK_NGROK_AUTH_TOKEN }}
|
||||
SSH_PASS: ${{ secrets.JOERICK_NGROK_SSH_PASS }}
|
||||
@@ -240,6 +240,12 @@ def setup_python(python_configuration: PythonConfiguration,
|
||||
env.setdefault('_PYTHON_HOST_PLATFORM', 'macosx-11.0-arm64')
|
||||
env.setdefault('ARCHFLAGS', '-arch arm64')
|
||||
|
||||
if python_configuration.identifier.endswith('_arm64') or python_configuration.identifier.endswith('_universal2'):
|
||||
if get_macos_version() < (10, 16):
|
||||
# xcode 12 or higher can build arm64 on macos 10.15 or below, but
|
||||
# needs the correct SDK selected
|
||||
env.setdefault('SDKROOT', 'macosx11.0')
|
||||
|
||||
log.step('Installing build tools...')
|
||||
call(['pip', 'install', '--upgrade', 'setuptools', 'wheel', 'delocate', *dependency_constraint_flags], env=env)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user