Skip to content

Commit

Permalink
get rid of CMAKE_EXTRA_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 17, 2024
1 parent 9e6b7e6 commit 6dd461b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if [[ "$target_platform" == osx-* ]]; then
export CXXFLAGS="$CXXFLAGS -isysroot $CONDA_BUILD_SYSROOT"
export LDFLAGS="$LDFLAGS -isysroot $CONDA_BUILD_SYSROOT -framework CoreFoundation"

export CMAKE_EXTRA_ARGS="-DCMAKE_OSX_SYSROOT=$CONDA_BUILD_SYSROOT -DLIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON"
export CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_OSX_SYSROOT=$CONDA_BUILD_SYSROOT"
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON"
fi

export CFLAGS="$CFLAGS -I$LLVM_PREFIX/include -I$BUILD_PREFIX/include"
Expand All @@ -29,8 +30,7 @@ cmake -G Ninja \
-DLIBCXX_HARDENING_MODE="${hardening}" \
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
$CMAKE_ARGS \
$CMAKE_EXTRA_ARGS
$CMAKE_ARGS

# Build
ninja -C build cxx cxxabi unwind
Expand Down

0 comments on commit 6dd461b

Please sign in to comment.