File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ command -v i686-w64-mingw32-gcc-posix >/dev/null &&
25
25
compiler=i686-w64-mingw32-gcc-posix
26
26
27
27
if [ -z " $compiler " ]; then
28
- echo " Unable to determine which mingw32 compiler to use"
28
+ echo " Unable to determine which MinGW compiler to use"
29
29
exit 1
30
30
fi
31
- toolchain_file=$dir /toolchain_${compiler% -gcc} .cmake
31
+ toolchain_file=$dir /toolchain_${compiler/ -gcc/ } .cmake
32
32
echo " Using $toolchain_file "
33
33
34
34
tmp=$( dirname " $( command -v $compiler ) " ) /../i686-w64-mingw32/bin
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ libdir=$builddir/libs
20
20
21
21
# Test which win64 compiler is present
22
22
command -v x86_64-w64-mingw32-gcc > /dev/null &&
23
- compiler=x86_64-w64-mingw32
23
+ compiler=x86_64-w64-mingw32-gcc
24
24
command -v x86_64-w64-mingw32-gcc-posix > /dev/null &&
25
- compiler=x86_64-w64-mingw32-posix
25
+ compiler=x86_64-w64-mingw32-gcc- posix
26
26
27
27
if [ -z " $compiler " ]; then
28
- echo " Unable to determine which mingw32 compiler to use"
28
+ echo " Unable to determine which MinGW compiler to use"
29
29
exit 1
30
30
fi
31
- toolchain_file=$dir /toolchain_${compiler% -gcc} .cmake
31
+ toolchain_file=$dir /toolchain_${compiler/ -gcc/ } .cmake
32
32
echo " Using $toolchain_file "
33
33
34
34
tmp=$( dirname " $( command -v $compiler ) " ) /../x86_64-w64-mingw32/bin
You can’t perform that action at this time.
0 commit comments