File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ if [ "${MSYSTEM}" = "MSYS" ]; then
4848elif [ " ${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
5156else
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"
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} "
You can’t perform that action at this time.
0 commit comments