Skip to content

Commit 9786255

Browse files
committed
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.
1 parent 34e14d3 commit 9786255

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-libcxx.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ for arch in $ARCHS; do
104104
-DLIBCXX_LIBDIR_SUFFIX="" \
105105
-DLIBCXX_INCLUDE_TESTS=FALSE \
106106
-DLIBCXX_INSTALL_MODULES=ON \
107+
-DLIBCXX_INSTALL_MODULES_DIR="$PREFIX/share/libc++/v1" \
107108
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=FALSE \
108109
-DLIBCXXABI_USE_COMPILER_RT=ON \
109110
-DLIBCXXABI_USE_LLVM_UNWINDER=ON \

0 commit comments

Comments
 (0)