Skip to content

Commit 7d85a87

Browse files
authored
Upgrade to OSX 10.14 for jll (rust-lang#1000)
1 parent d6e548e commit 7d85a87

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.packaging/build_tarballs.jl

+15-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ version = VersionNumber(split(auto_version, "/")[end])
1414
llvm_versions = [v"11.0.1", v"12.0.1", v"13.0.1", v"14.0.2", v"15.0.7"]
1515

1616
# Collection of sources required to build attr
17-
sources = [GitSource(repo, "%ENZYME_HASH%")]
17+
sources = [
18+
GitSource(repo, "%ENZYME_HASH%"),
19+
ArchiveSource("https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.14.sdk.tar.xz",
20+
"0f03869f72df8705b832910517b47dd5b79eb4e160512602f593ed243b28715f"),
21+
]
1822

1923
# These are the platforms we will build for by default, unless further
2024
# platforms are passed in on the command line
@@ -24,6 +28,16 @@ platforms = expand_cxxstring_abis(supported_platforms(; experimental=true))
2428
script = raw"""
2529
cd Enzyme
2630
31+
if [[ "${bb_full_target}" == x86_64-apple-darwin*llvm_version+15.asserts* ]]; then
32+
# LLVM 15 requires macOS SDK 10.14.
33+
pushd $WORKSPACE/srcdir/MacOSX10.*.sdk
34+
rm -rf /opt/${target}/${target}/sys-root/System
35+
cp -ra usr/* "/opt/${target}/${target}/sys-root/usr/."
36+
cp -ra System "/opt/${target}/${target}/sys-root/."
37+
export MACOSX_DEPLOYMENT_TARGET=10.14
38+
popd
39+
fi
40+
2741
# 1. Build HOST
2842
NATIVE_CMAKE_FLAGS=()
2943
NATIVE_CMAKE_FLAGS+=(-DENZYME_CLANG=ON)

0 commit comments

Comments
 (0)