File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ script = raw"""
17
17
cd Enzyme
18
18
# install_license LICENSE.TXT
19
19
CMAKE_FLAGS=()
20
- # Release build for best performance
21
20
CMAKE_FLAGS+=(-DENZYME_EXTERNAL_SHARED_LIB=ON)
22
21
CMAKE_FLAGS+=(-DENZYME_CLANG=OFF)
22
+ # RelWithDebInfo for decent performance, with debugability
23
23
CMAKE_FLAGS+=(-DCMAKE_BUILD_TYPE=RelWithDebInfo)
24
24
# Install things into $prefix
25
25
CMAKE_FLAGS+=(-DCMAKE_INSTALL_PREFIX=${prefix})
@@ -32,8 +32,8 @@ CMAKE_FLAGS+=(-DLLVM_DIR="${prefix}/lib/cmake/llvm")
32
32
CMAKE_FLAGS+=(-DLLVM_LINK_LLVM_DYLIB=ON)
33
33
# Build the library
34
34
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)
37
37
fi
38
38
cmake -B build -S enzyme -GNinja ${CMAKE_FLAGS[@]}
39
39
ninja -C build -j ${nproc} install
You can’t perform that action at this time.
0 commit comments