Increase the template nesting depth for clang. (#1995)

We started hitting this limit, so increaseing from 256 to 1024.

Fixes #1994.
This commit is contained in:
Steven Perron 2018-10-19 11:59:01 -04:00 committed by GitHub
parent 67ebe3f7ae
commit c5a6d259c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,8 @@ function(spvtools_default_compile_options TARGET)
target_compile_options(${TARGET} PRIVATE
-fsanitize=${SPIRV_USE_SANITIZER})
endif()
target_compile_options(${TARGET} PRIVATE
-ftemplate-depth=1024)
else()
target_compile_options(${TARGET} PRIVATE
-Wno-missing-field-initializers)