Skip to content

Commit 1f83843

Browse files
committed
Automatically set EXEEXT in build-mingw-w64.sh and strip-llvm.sh
1 parent 9e7a6e0 commit 1f83843

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

build-mingw-w64.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ if [ -n "$HOST" ]; then
9999
CONFIGFLAGS="$CONFIGFLAGS --host=$HOST"
100100
CROSS_NAME=$HOST-
101101
EXEEXT=.exe
102+
else
103+
case $(uname) in
104+
MINGW*)
105+
EXEEXT=.exe
106+
;;
107+
*)
108+
;;
109+
esac
102110
fi
103111
if [ -n "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
104112
CONFIGFLAGS="$CONFIGFLAGS --with-widl-includedir=$PREFIX/include"

strip-llvm.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ fi
99
PREFIX="$1"
1010
cd "$PREFIX"
1111

12+
case $(uname) in
13+
MINGW*)
14+
EXEEXT=.exe
15+
;;
16+
*)
17+
;;
18+
esac
19+
1220
cd bin
1321
for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmaptool ld64.lld llc lli llvm-* obj2yaml opt sancov sanstats scan-build scan-view verify-uselistorder wasm-ld yaml2obj libclang.dll LTO.dll *.bat; do
1422
basename=$i

0 commit comments

Comments
 (0)