Skip to content

Commit 8c606a5

Browse files
authored
Fix JLL buildscript (rust-lang#515)
1 parent 59c7227 commit 8c606a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.packaging/build_tarballs.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ script = raw"""
1717
cd Enzyme
1818
# install_license LICENSE.TXT
1919
CMAKE_FLAGS=()
20-
# Release build for best performance
2120
CMAKE_FLAGS+=(-DENZYME_EXTERNAL_SHARED_LIB=ON)
2221
CMAKE_FLAGS+=(-DENZYME_CLANG=OFF)
22+
# RelWithDebInfo for decent performance, with debugability
2323
CMAKE_FLAGS+=(-DCMAKE_BUILD_TYPE=RelWithDebInfo)
2424
# Install things into $prefix
2525
CMAKE_FLAGS+=(-DCMAKE_INSTALL_PREFIX=${prefix})
@@ -32,8 +32,8 @@ CMAKE_FLAGS+=(-DLLVM_DIR="${prefix}/lib/cmake/llvm")
3232
CMAKE_FLAGS+=(-DLLVM_LINK_LLVM_DYLIB=ON)
3333
# Build the library
3434
CMAKE_FLAGS+=(-DBUILD_SHARED_LIBS=ON)
35-
if [[ "${target}" == *apple* ]]; then
36-
CMAKE_FLAGS+=(-DCMAKE_CXX_FLAGS=-mmacosx-version-min=12)
35+
if [[ "${target}" == x86_64-apple* ]]; then
36+
CMAKE_FLAGS+=(-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.12)
3737
fi
3838
cmake -B build -S enzyme -GNinja ${CMAKE_FLAGS[@]}
3939
ninja -C build -j ${nproc} install

0 commit comments

Comments
 (0)