From 37d5b8d9c2fa9af258e6dc429544b95342b7dbf4 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 12 Nov 2018 22:35:21 +0000 Subject: CMakeLists.txt: add -ftemplate-depth=900 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 388eee3fb..69177c85f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -816,6 +816,9 @@ else() set(DEBUG_FLAGS "${DEBUG_FLAGS} -O0 ") 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) set(USE_LTO_DEFAULT false) endif() -- cgit v1.2.3