Skip to content

Commit 2418f73

Browse files
theunidongcarl
andcommitted
macos: Bump to xcode 11.3.1 and 10.15 SDK
This gets us a newer SDK with c++17 support and retains 10.12 back-compat. Co-authored-by: Carl Dong <[email protected]>
1 parent 5c2c835 commit 2418f73

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

ci/test/00_setup_env_mac.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export LC_ALL=C.UTF-8
99
export CONTAINER_NAME=ci_macos_cross
1010
export HOST=x86_64-apple-darwin16
1111
export PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools"
12-
export XCODE_VERSION=10.2.1
13-
export XCODE_BUILD_ID=10E1001
12+
export XCODE_VERSION=11.3.1
13+
export XCODE_BUILD_ID=11C505
1414
export RUN_UNIT_TESTS=false
1515
export RUN_FUNCTIONAL_TESTS=false
1616
export GOAL="deploy"

contrib/gitian-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def main():
209209
args.macos = 'm' in args.os
210210

211211
# Disable for MacOS if no SDK found
212-
if args.macos and not os.path.isfile('gitian-builder/inputs/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz'):
212+
if args.macos and not os.path.isfile('gitian-builder/inputs/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz'):
213213
print('Cannot build for MacOS, SDK does not exist. Will build for other OSes')
214214
args.macos = False
215215

contrib/gitian-descriptors/gitian-osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ remotes:
3232
- "url": "https://github.com/bitcoin/bitcoin.git"
3333
"dir": "bitcoin"
3434
files:
35-
- "Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz"
35+
- "Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz"
3636
script: |
3737
set -e -o pipefail
3838
@@ -90,7 +90,7 @@ script: |
9090
BASEPREFIX="${PWD}/depends"
9191
9292
mkdir -p ${BASEPREFIX}/SDKs
93-
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz
93+
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz
9494
9595
# Build dependencies for each host
9696
for i in $HOSTS; do

contrib/macdeploy/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ When complete, it will have produced `Bitcoin-Qt.dmg`.
1717
### Step 1: Obtaining `Xcode.app`
1818

1919
Our current macOS SDK
20-
(`Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz`) can be
20+
(`Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz`) can be
2121
extracted from
22-
[Xcode_10.2.1.xip](https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip).
22+
[Xcode_11.3.1.xip](https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip).
2323
An Apple ID is needed to download this.
2424

2525
After Xcode version 7.x, Apple started shipping the `Xcode.app` in a `.xip`
@@ -31,25 +31,25 @@ approach (tested on Debian Buster) is outlined below:
3131
apt install cpio
3232
git clone https://github.com/bitcoin-core/apple-sdk-tools.git
3333

34-
# Unpack Xcode_10.2.1.xip and place the resulting Xcode.app in your current
34+
# Unpack Xcode_11.3.1.xip and place the resulting Xcode.app in your current
3535
# working directory
36-
python3 apple-sdk-tools/extract_xcode.py -f Xcode_10.2.1.xip | cpio -d -i
36+
python3 apple-sdk-tools/extract_xcode.py -f Xcode_11.3.1.xip | cpio -d -i
3737
```
3838

3939
On macOS the process is more straightforward:
4040

4141
```bash
42-
xip -x Xcode_10.2.1.xip
42+
xip -x Xcode_11.3.1.xip
4343
```
4444

45-
### Step 2: Generating `Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
45+
### Step 2: Generating `Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
4646

47-
To generate `Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz`, run
47+
To generate `Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz`, run
4848
the script [`gen-sdk`](./gen-sdk) with the path to `Xcode.app` (extracted in the
4949
previous stage) as the first argument.
5050

5151
```bash
52-
# Generate a Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz from
52+
# Generate a Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz from
5353
# the supplied Xcode.app
5454
./contrib/macdeploy/gen-sdk '/path/to/Xcode.app'
5555
```
@@ -80,7 +80,7 @@ and its `libLTO.so` rather than those from `llvmgcc`, as it was originally done
8080

8181
To complicate things further, all builds must target an Apple SDK. These SDKs are free to
8282
download, but not redistributable. To obtain it, register for an Apple Developer Account,
83-
then download [Xcode_10.2.1](https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip).
83+
then download [Xcode_11.3.1](https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip).
8484

8585
This file is many gigabytes in size, but most (but not all) of what we need is
8686
contained only in a single directory:

depends/hosts/darwin.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OSX_MIN_VERSION=10.12
2-
OSX_SDK_VERSION=10.14.4
3-
XCODE_VERSION=10.2.1
4-
XCODE_BUILD_ID=10E1001
2+
OSX_SDK_VERSION=10.15.1
3+
XCODE_VERSION=11.3.1
4+
XCODE_BUILD_ID=11C505
55
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers
66
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK)
77
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++

0 commit comments

Comments
 (0)