Skip to content

Commit

Permalink
issue #9269 Not able to compile with MSYS2/mingw (file too big)
Browse files Browse the repository at this point in the history
Option `-Wa,-mbig-obj`, currently, not necessary for the build.
  • Loading branch information
albert-github committed Apr 13, 2022
1 parent 897b75f commit 9fce084
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Expand Up @@ -88,7 +88,6 @@ if (WIN32)
endif()
endif()
if (CMAKE_SYSTEM_NAME MATCHES "CYGWIN")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")

if (CMAKE_BUILD_TYPE STREQUAL "")
Expand All @@ -101,7 +100,6 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows")
(CMAKE_GENERATOR MATCHES "MSYS Makefiles") OR
(CMAKE_GENERATOR MATCHES "Unix Makefiles"))

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")

if (CMAKE_BUILD_TYPE STREQUAL "")
Expand Down

0 comments on commit 9fce084

Please sign in to comment.