File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 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 &&
2525 compiler=i686-w64-mingw32-gcc-posix
2626
2727if [ -z " $compiler " ]; then
28- echo " Unable to determine which mingw32 compiler to use"
28+ echo " Unable to determine which MinGW compiler to use"
2929 exit 1
3030fi
31- toolchain_file=$dir /toolchain_${compiler% -gcc} .cmake
31+ toolchain_file=$dir /toolchain_${compiler/ -gcc/ } .cmake
3232echo " Using $toolchain_file "
3333
3434tmp=$( 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
2020
2121# Test which win64 compiler is present
2222command -v x86_64-w64-mingw32-gcc > /dev/null &&
23- compiler=x86_64-w64-mingw32
23+ compiler=x86_64-w64-mingw32-gcc
2424command -v x86_64-w64-mingw32-gcc-posix > /dev/null &&
25- compiler=x86_64-w64-mingw32-posix
25+ compiler=x86_64-w64-mingw32-gcc- posix
2626
2727if [ -z " $compiler " ]; then
28- echo " Unable to determine which mingw32 compiler to use"
28+ echo " Unable to determine which MinGW compiler to use"
2929 exit 1
3030fi
31- toolchain_file=$dir /toolchain_${compiler% -gcc} .cmake
31+ toolchain_file=$dir /toolchain_${compiler/ -gcc/ } .cmake
3232echo " Using $toolchain_file "
3333
3434tmp=$( dirname " $( command -v $compiler ) " ) /../x86_64-w64-mingw32/bin
You can’t perform that action at this time.
0 commit comments