Skip to content

Commit

Permalink
cmake: Fix MSVC exceeding the maximum section limit of an object file…
Browse files Browse the repository at this point in the history
… during tablegen
  • Loading branch information
wheremyfoodat authored and fleroviux committed May 24, 2024
1 parent 70f208d commit 3e0dc3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dual/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,6 @@ target_include_directories(dual PRIVATE src)

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(dual PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-fbracket-depth=8192>)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_options(dual PRIVATE /bigobj)
endif()

0 comments on commit 3e0dc3a

Please sign in to comment.