From 7bbbf7c65fec7bba59911dc161a48111927360d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 12 Jan 2024 00:02:09 +0200 Subject: [PATCH] strip-llvm: Inspect the --host= argument for the kind of triple Don't assume that any host argument indicates cross compiling for Windows. Update build-all to pass --host arguments to strip-llvm as well, for consistency. --- build-all.sh | 2 +- strip-llvm.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build-all.sh b/build-all.sh index 68fecec..d13827a 100755 --- a/build-all.sh +++ b/build-all.sh @@ -95,7 +95,7 @@ if [ -z "$NO_TOOLS" ]; then ./build-lldb-mi.sh $PREFIX $HOST_ARGS fi if [ -z "$FULL_LLVM" ]; then - ./strip-llvm.sh $PREFIX + ./strip-llvm.sh $PREFIX $HOST_ARGS fi ./install-wrappers.sh $PREFIX $HOST_ARGS ./build-mingw-w64-tools.sh $PREFIX $HOST_ARGS diff --git a/strip-llvm.sh b/strip-llvm.sh index 99fb2d7..56a7362 100755 --- a/strip-llvm.sh +++ b/strip-llvm.sh @@ -40,7 +40,11 @@ if [ -n "$FULL_LLVM" ]; then fi if [ -n "$HOST" ]; then - EXEEXT=.exe + case $HOST in + *-mingw32) + EXEEXT=.exe + ;; + esac fi case $(uname) in