summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-02-18 13:01:08 +0100
committerArthur Heymans <arthur@aheymans.xyz>2022-05-13 11:03:16 +0000
commita0595759f62a704b32e484627a84eee136548f7d (patch)
treeebeef5d292ad0fe05971e324e654a7f543b38f82 /util/xcompile
parent3ff19f8dcd9370097c323c570fe573d20ae73674 (diff)
downloadcoreboot-a0595759f62a704b32e484627a84eee136548f7d.tar.gz
xcompile,clang: increase the number of bracket-depth for CPP
Clang has a limit for the number of nested brackets in CPP. For soc/intel/common/block/include/intelblocks this is a problem as it largely exceeds the default limit of 256. Change-Id: I93038f918e07f735394fc495a8ed7371cc5b1569 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62175 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 4950a9e282..e5e8098159 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -238,6 +238,7 @@ CLANG_CFLAGS_${TARCH}+=-Qunused-arguments -m${TWIDTH}
# tone down clang compiler warnings
CLANG_CFLAGS_${TARCH}+=-Wno-unused-variable -Wno-unused-function -Wno-tautological-compare
CLANG_CFLAGS_${TARCH}+=-Wno-shift-overflow -Wno-address-of-packed-member -Wno-initializer-overrides
+CLANG_CFLAGS_${TARCH}+=-fbracket-depth=2048
CLANG_COMPILER_RT_${TARCH}:=${CC_RT_CLANG}
CLANG_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_CLANG}