From 7d85a8743f15f4e48a8aae097c545a80aee7dc68 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 16 Feb 2023 10:38:37 -0500 Subject: [PATCH] Upgrade to OSX 10.14 for jll (#1000) --- .packaging/build_tarballs.jl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.packaging/build_tarballs.jl b/.packaging/build_tarballs.jl index 968d633e6ae3..69633d609fcd 100644 --- a/.packaging/build_tarballs.jl +++ b/.packaging/build_tarballs.jl @@ -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 @@ -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)