mingw: Disable stack printing when using MINGW compiler.

This commit is contained in:
2025-06-20 16:20:34 +08:00
parent 6941e1b893
commit 6aea5f6614
8 changed files with 42 additions and 6 deletions

View File

@@ -10,6 +10,12 @@ if (MSVC)
add_compile_options(/utf-8)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows")
message(STATUS "frelay use MINGW compiler.")
set(COMPILER_USE_MINGW ON)
add_definitions(-DCOMPILER_USE_MINGW)
endif()
if(WIN32)
execute_process(COMMAND cmd /c ver
OUTPUT_VARIABLE VER_OUTPUT