From d7173943843a1a68b13b681f923cf45557881e05 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 25 Aug 2023 13:04:07 +0200 Subject: [PATCH] util/xcompile: Fix libpayload compilation with clang/llvm x86 assembly code uses a lot of nested macros so increase the default value from 20 to 1000. Signed-off-by: Arthur Heymans Change-Id: Ic23c452514de7dc1aa420541b756c443180b8b37 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77430 Reviewed-by: Martin L Roth Reviewed-by: Elyes Haouas Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index bebf5ff3e8..1eecc7e380 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -259,7 +259,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_CFLAGS_${TARCH}+=-fbracket-depth=2048 -mllvm -asm-macro-max-nesting-depth=1000 CLANG_COMPILER_RT_${TARCH}:=${CC_RT_CLANG} CLANG_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_CLANG}