CMakeLists.txt: add -ftemplate-depth=900

This commit is contained in:
moneromooo-monero 2018-11-12 22:35:21 +00:00
parent 8534f71eed
commit 37d5b8d9c2
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 3 additions and 0 deletions

View File

@ -816,6 +816,9 @@ else()
set(DEBUG_FLAGS "${DEBUG_FLAGS} -O0 ") set(DEBUG_FLAGS "${DEBUG_FLAGS} -O0 ")
endif() endif()
# At least some CLANGs default to not enough for monero
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=900")
if(NOT DEFINED USE_LTO_DEFAULT) if(NOT DEFINED USE_LTO_DEFAULT)
set(USE_LTO_DEFAULT false) set(USE_LTO_DEFAULT false)
endif() endif()