Fix building only certain architectures when building on windows
On windows, we rename clang.exe to clang-$MAJOR.exe, and later install clang.exe as a wrapper for the default architecture. But if only building certain architectures, and the host architecture isn't one of them, we shouldn't install any unprefixed clang.exe at all.
This commit is contained in:
1 parent
64d39428b6
commit
af1099048a
3 files changed
+19
-9
No files matched your search
@@ -29,7 +29,8 @@ export PATH="$PREFIX/bin:$PATH"
|
||||
: ${CORES:=4}
|
||||
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
|
||||
|
||||
CLANG_VERSION=$(basename "$(dirname "$(dirname "$(dirname "$("$PREFIX/bin/clang" --print-libgcc-file-name -rtlib=compiler-rt)")")")")
|
||||
ANY_ARCH=$(echo $ARCHS | awk '{print $1}')
|
||||
CLANG_VERSION=$(basename "$(dirname "$(dirname "$(dirname "$("$PREFIX/bin/$ANY_ARCH-w64-mingw32-clang" --print-libgcc-file-name -rtlib=compiler-rt)")")")")
|
||||
|
||||
if [ ! -d llvm-project/compiler-rt ] || [ -n "$SYNC" ]; then
|
||||
CHECKOUT_ONLY=1 ./build-llvm.sh
|
||||
|
||||
Reference in new issue
Block a user