Skip to content

Commit e4c12ad

Browse files
KanclerzPiotrigcbot
authored andcommitted
Increase bracket depth for clang
Increase bracket-depth to 1024 for clang because we exceed the default limit of 256. This resulted in errors like: "instantiating fold expression with ... arguments exceeded expression nesting limit of 256"
1 parent ca4457a commit e4c12ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ foreach(_compilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS")
10861086
endif()
10871087
endif()
10881088

1089-
# NOTE: Increase bracket-depth to 512 for clang because we exceed the default limit of 256.
1089+
# NOTE: Increase bracket-depth to 1024 for clang because we exceed the default limit of 256.
10901090
# This resulted in errors like:
10911091
# "instantiating fold expression with ... arguments exceeded expression nesting limit of 256"
10921092
if(_igc_compiler_is_clang)
@@ -1095,7 +1095,7 @@ foreach(_compilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS")
10951095
"${_compilerFlagName}"
10961096
ALL_PATTERN ""
10971097
SET_RAW
1098-
-fbracket-depth=512
1098+
-fbracket-depth=1024
10991099
)
11001100
endif()
11011101
endforeach()

0 commit comments

Comments
 (0)