Skip to content

Commit

Permalink
bigobj flag to mingw-gcc build(not enabled by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Nov 27, 2023
1 parent d67e90b commit 8041251
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,11 @@ set_target_properties(tinyusdz_object PROPERTIES POSITION_INDEPENDENT_CODE ON)
# Uncommend if you encounter the following errror: fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
#if(MSVC)
# target_compile_options(tinyusdz_object PRIVATE /bigobj)
#elif(WIN32)
# if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# # guess mingw-gcc
# target_compile_options(tinyusdz_object PRIVATE "-Wa, -mbig-obj")
# endif()
#endif()

if (MSVC)
Expand Down

0 comments on commit 8041251

Please sign in to comment.