Changeset - r26510:b3cc0e39e539
[Not reviewed]
master
0 1 0
Loïc Guilloux - 20 months ago 2022-11-06 10:24:35
glx22@users.noreply.github.com
Codechange: [MinGW] use pe-bigobj-x86-64 format for x64 debug builds (#10142)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
cmake/CompileFlags.cmake
Show inline comments
 
@@ -44,8 +44,8 @@ macro(compile_flags)
 
            "$<$<NOT:$<CONFIG:Debug>>:-fstack-protector>" # Prevent undefined references when _FORTIFY_SOURCE > 0
 
        )
 
        if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 
            add_link_options(
 
                "$<$<CONFIG:Debug>:-Wl,--disable-dynamicbase,--disable-high-entropy-va,--default-image-base-low>" # ASLR somehow breaks linking for x64 Debug builds
 
            add_compile_options(
 
                "$<$<CONFIG:Debug>:-Wa,-mbig-obj>" # Switch to pe-bigobj-x86-64 as x64 Debug builds push pe-x86-64 to the limits (linking errors with ASLR, ...)
 
            )
 
        endif()
 
    endif()
0 comments (0 inline, 0 general)