CMakeLists: Increase maximum bracket depth for Clang
See also: https://reviews.llvm.org/D86936 Bracket depth limits size of fold expression which in turn limits size of std::array initialization via CTAD
This commit is contained in:
parent
fe761b2c61
commit
b841ce1df5
1 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,12 @@ else()
|
||||||
list(APPEND DYNARMIC_CXX_FLAGS
|
list(APPEND DYNARMIC_CXX_FLAGS
|
||||||
-Wfatal-errors)
|
-Wfatal-errors)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang")
|
||||||
|
# Bracket depth determines maximum size of a fold expression in Clang since 9c9974c3ccb6.
|
||||||
|
# And this in turns limits the size of a std::array.
|
||||||
|
list(APPEND DYNARMIC_CXX_FLAGS -fbracket-depth=1024)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Arch detection
|
# Arch detection
|
||||||
|
|
Loading…
Add table
Reference in a new issue