Skip to content

Commit c510037

Browse files
committedNov 10, 2021
Fix compiler detection in buildbot
it was just half-broken before...
1 parent cbf658f commit c510037

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

Diff for: ‎util/buildbot/buildwin32.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ command -v i686-w64-mingw32-gcc-posix >/dev/null &&
2525
compiler=i686-w64-mingw32-gcc-posix
2626

2727
if [ -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
3030
fi
31-
toolchain_file=$dir/toolchain_${compiler%-gcc}.cmake
31+
toolchain_file=$dir/toolchain_${compiler/-gcc/}.cmake
3232
echo "Using $toolchain_file"
3333

3434
tmp=$(dirname "$(command -v $compiler)")/../i686-w64-mingw32/bin

Diff for: ‎util/buildbot/buildwin64.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ libdir=$builddir/libs
2020

2121
# Test which win64 compiler is present
2222
command -v x86_64-w64-mingw32-gcc >/dev/null &&
23-
compiler=x86_64-w64-mingw32
23+
compiler=x86_64-w64-mingw32-gcc
2424
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
2626

2727
if [ -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
3030
fi
31-
toolchain_file=$dir/toolchain_${compiler%-gcc}.cmake
31+
toolchain_file=$dir/toolchain_${compiler/-gcc/}.cmake
3232
echo "Using $toolchain_file"
3333

3434
tmp=$(dirname "$(command -v $compiler)")/../x86_64-w64-mingw32/bin

0 commit comments

Comments
 (0)
Please sign in to comment.