Skip to content

Commit 2312d6e

Browse files
triladermstorsjo
authored andcommitted
Merge arch headers into LLVM provided include directory
If not building with FULL_LLVM the directory is empty or doesn't exist. Otherwise it contains the LLVM headers. In either case merge the architecture specific ones into it.
1 parent 4a60685 commit 2312d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prepare-cross-toolchain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ cp $SRC/$CROSS_ARCH-w64-mingw32/bin/*.dll $DEST/bin
5252
rm -rf $DEST/lib/clang/$CLANG_VERSION
5353
cp -a $CLANG_RESOURCE_DIR $DEST/lib/clang/$CLANG_VERSION
5454

55-
rm -rf $DEST/include
55+
mkdir -p $DEST/include
5656
# Copy over headers and arch specific files, converting a unix style
5757
# install (everything in arch specific subdirectories) into
5858
# what we'd have when built on Windows, as if build-mingw-w64.sh
5959
# was called with --skip-include-triplet-prefit, with all headers
6060
# in $DEST/include, and only keeping the bin and lib directories for the
6161
# individual architectures.
62-
cp -a $SRC/generic-w64-mingw32/include $DEST/include
62+
cp -a $SRC/generic-w64-mingw32/include/. $DEST/include
6363
for arch in $ARCHS; do
6464
mkdir -p $DEST/$arch-w64-mingw32
6565
for subdir in bin lib share; do

0 commit comments

Comments
 (0)