File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,13 @@ if [ -n "$EXEEXT" ]; then
7070 if [ ! -L clang$EXEEXT ]; then
7171 mv clang$EXEEXT clang-$CLANG_MAJOR$EXEEXT
7272 fi
73- if [ -n " $HOST " ]; then
74- for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do
75- ln -sf $HOST -$exec$EXEEXT $exec$EXEEXT
76- done
77- for exec in ld objdump dlltool objcopy strip; do
78- ln -sf $HOST -$exec $exec
79- done
73+ if [ -z " $HOST " ]; then
74+ HOST=$( ./clang-$CLANG_MAJOR -dumpmachine | sed ' s/-.*//' ) -w64-mingw32
8075 fi
76+ for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do
77+ ln -sf $HOST -$exec$EXEEXT $exec$EXEEXT
78+ done
79+ for exec in ld objdump dlltool objcopy strip; do
80+ ln -sf $HOST -$exec $exec
81+ done
8182fi
You can’t perform that action at this time.
0 commit comments