Skip to content

Commit

Permalink
explicitly build against system-libcxxabi
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 17, 2024
1 parent 6dd461b commit d6e40e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [[ "$target_platform" == osx-* ]]; then

export CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_OSX_SYSROOT=$CONDA_BUILD_SYSROOT"
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON"
# we want to build against the system libcxxabi, not ship our own
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_CXX_ABI=system-libcxxabi"
fi

export CFLAGS="$CFLAGS -I$LLVM_PREFIX/include -I$BUILD_PREFIX/include"
Expand Down Expand Up @@ -37,8 +39,3 @@ ninja -C build cxx cxxabi unwind

# Install
ninja -C build install-cxx install-cxxabi install-unwind

if [[ "$target_platform" == osx-* ]]; then
# on osx we point libc++ to the system libc++abi
$INSTALL_NAME_TOOL -change "@rpath/libc++abi.1.dylib" "/usr/lib/libc++abi.dylib" $PREFIX/lib/libc++.1.0.dylib
fi

0 comments on commit d6e40e5

Please sign in to comment.