Skip to content

Commit

Permalink
cmake: Use big objects.
Browse files Browse the repository at this point in the history
To avoid errors when compiling dxgitrace.cpp after adding more
interfaces/methods.
  • Loading branch information
jrfonseca committed Oct 11, 2017
1 parent 3ac8196 commit 4252663
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ if (ENABLE_FRAME_POINTER)
endif ()

if (WIN32)
# Increase number of sections in obj files
if (MSVC)
add_compiler_flags (-bigobj)
else ()
add_compiler_flags (-Wa,-mbig-obj)
endif ()

# Enable Data Execution Prevention and Address Space Layout Randomization
if (MSVC)
add_linker_flags (/NXCOMPAT /DYNAMICBASE)
Expand Down

0 comments on commit 4252663

Please sign in to comment.