Skip to content

Commit

Permalink
Upgrade to OSX 10.14 for jll (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Feb 16, 2023
1 parent d6e548e commit 7d85a87
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .packaging/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ version = VersionNumber(split(auto_version, "/")[end])
llvm_versions = [v"11.0.1", v"12.0.1", v"13.0.1", v"14.0.2", v"15.0.7"]

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

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

0 comments on commit 7d85a87

Please sign in to comment.