[libc++][Apple] Make sure to set the LIBCXX_LIBRARY_VERSION when building for Apple

Differential Revision: https://reviews.llvm.org/D146361
This commit is contained in:
Louis Dionne 2023-03-18 12:10:31 -04:00
parent 16fe61ac7b
commit d6c12cbee3

View File

@ -119,7 +119,8 @@ for arch in ${architectures}; do
-DCMAKE_INSTALL_PREFIX="${build_dir}/${arch}-install" \
-DCMAKE_INSTALL_NAME_DIR="/usr/lib" \
-DCMAKE_OSX_ARCHITECTURES="${arch}" \
-DLIBCXXABI_LIBRARY_VERSION="${version}"
-DLIBCXXABI_LIBRARY_VERSION="${version}" \
-DLIBCXX_LIBRARY_VERSION="${version}"
if [ "$headers_only" = true ]; then
xcrun cmake --build "${build_dir}/${arch}" --target install-cxx-headers install-cxxabi-headers -- -v