From 97862552f511070651e1fdb8c8028a22c2e2755a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 12 Apr 2024 10:33:34 +0300 Subject: [PATCH] build-libcxx: Install the libc++ module in a shared directory By default these files would be installed into ${CMAKE_INSTALL_PREFIX}/share/libc++/v1, where ${CMAKE_INSTALL_PREFIX} is equal to ${PREFIX}/${arch}-w64-mingw32. However, to avoid duplicating these files for each architecture, install them into ${PREFIX}/share/libc++/v1 instead. While the files aren't very large (currently weighing in at around 612 KB), they're architecture independent files (and they're more than a few; they're currently 135 files), so we should share them if possible. --- build-libcxx.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-libcxx.sh b/build-libcxx.sh index f6dc7a2..e9f1c0f 100755 --- a/build-libcxx.sh +++ b/build-libcxx.sh @@ -104,6 +104,7 @@ for arch in $ARCHS; do -DLIBCXX_LIBDIR_SUFFIX="" \ -DLIBCXX_INCLUDE_TESTS=FALSE \ -DLIBCXX_INSTALL_MODULES=ON \ + -DLIBCXX_INSTALL_MODULES_DIR="$PREFIX/share/libc++/v1" \ -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=FALSE \ -DLIBCXXABI_USE_COMPILER_RT=ON \ -DLIBCXXABI_USE_LLVM_UNWINDER=ON \