Skip to content

Commit f0c09fe

Browse files
committed
WIP
1 parent 2471886 commit f0c09fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CI/build-mudlet-for-windows.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ if [ "${MSYSTEM}" = "MSYS" ]; then
4848
elif [ "${MSYSTEM}" = "MINGW64" ]; then
4949
export BUILD_BITNESS="64"
5050
export BUILDCOMPONENT="x86_64"
51+
# Force use of MinGW-w64 GCC toolchain instead of any pre-set clang
52+
export CC=gcc
53+
export CXX=g++
54+
unset CMAKE_C_COMPILER
55+
unset CMAKE_CXX_COMPILER
5156
else
5257
echo "This script is not set up to handle systems of type ${MSYSTEM}, only"
5358
echo "MINGW64 is currently supported. Please rerun this in a bash terminal of"
@@ -185,6 +190,12 @@ EOF
185190
echo " Debug: Contents of CMakeLists.txt:"
186191
cat CMakeLists.txt
187192

193+
# Ensure we override any environment/toolchain hints that might still point to clang
194+
export CC="${MINGW_INTERNAL_BASE_DIR}/bin/gcc.exe"
195+
export CXX="${MINGW_INTERNAL_BASE_DIR}/bin/g++.exe"
196+
unset CMAKE_C_COMPILER
197+
unset CMAKE_CXX_COMPILER
198+
188199
# Build Sentry using CMake with Crashpad backend
189200
echo " Debug: Running cmake configure..."
190201
export MINGW_ROOT="${MINGW_INTERNAL_BASE_DIR}"

0 commit comments

Comments
 (0)