Browse Source

Merge pull request #4919 from Kuxe/dont_use_Og_for_mingw_debug_builds

Remove '-Og' from MINGW debug builds
Ivan Savenko 11 months ago
parent
commit
3f8f6dc721
1 changed files with 0 additions and 7 deletions
  1. 0 7
      CMakeLists.txt

+ 0 - 7
CMakeLists.txt

@@ -355,13 +355,6 @@ if(MINGW OR MSVC)
 		if(ICONV_FOUND)
 		if(ICONV_FOUND)
 			set(SYSTEM_LIBS ${SYSTEM_LIBS} iconv)
 			set(SYSTEM_LIBS ${SYSTEM_LIBS} iconv)
 		endif()
 		endif()
-
-		# Prevent compiler issues when building Debug
-		# Assembler might fail with "too many sections"
-		# With big-obj or 64-bit build will take hours
-		if(CMAKE_BUILD_TYPE STREQUAL "Debug")
-			set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")
-		endif()
 	endif(MINGW)
 	endif(MINGW)
 endif(MINGW OR MSVC)
 endif(MINGW OR MSVC)