File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ CROSS_ARCH="$3"
2626
2727: ${ARCHS:= ${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64} }
2828
29- CLANG_VERSION=$( basename $( dirname $( dirname $( dirname $( $SRC /bin/clang --print-libgcc-file-name -rtlib=compiler-rt) ) ) ) )
29+ CLANG_RESOURCE_DIR=" $( " $SRC /bin/clang" --print-resource-dir) "
30+ CLANG_VERSION=$( basename " $CLANG_RESOURCE_DIR " )
3031
3132# If linked to a shared libc++/libunwind, we need to bundle those DLLs
3233# in the bin directory.
@@ -36,7 +37,7 @@ for i in libc++ libunwind; do
3637 fi
3738done
3839
39- cp -a $SRC /lib/clang/ $CLANG_VERSION /lib $DEST /lib/clang/$CLANG_VERSION
40+ cp -a $CLANG_RESOURCE_DIR /lib $DEST /lib/clang/$CLANG_VERSION
4041rm -rf $DEST /include
4142cp -a $SRC /generic-w64-mingw32/include $DEST /include
4243for arch in $ARCHS ; do
You can’t perform that action at this time.
0 commit comments