Felix Singer has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83374?usp=email )
Change subject: xcompile: Use one line per CLANG_CFLAGS_${TARCH} flag ......................................................................
xcompile: Use one line per CLANG_CFLAGS_${TARCH} flag
Change-Id: I5c649898218a9c5d51d18a35264e9636e3dee179 Signed-off-by: Elyes Haouas ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/83374 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Felix Singer service+coreboot-gerrit@felixsinger.de --- M util/xcompile/xcompile 1 file changed, 13 insertions(+), 6 deletions(-)
Approvals: Felix Singer: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index ff067d2..3948811 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -260,13 +260,20 @@ cat <<EOF
# Clang -CLANG_CC_${TARCH}:=${CLANG} -CLANG_CFLAGS_${TARCH}:=${CFLAGS_CLANG} -CLANG_CFLAGS_${TARCH}+=-Qunused-arguments -m${TWIDTH} +CLANG_CC_${TARCH} := ${CLANG} +CLANG_CFLAGS_${TARCH} := ${CFLAGS_CLANG} +CLANG_CFLAGS_${TARCH} += -Qunused-arguments +CLANG_CFLAGS_${TARCH} += -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 -mllvm -asm-macro-max-nesting-depth=1000 +CLANG_CFLAGS_${TARCH} += -Wno-unused-variable +CLANG_CFLAGS_${TARCH} += -Wno-unused-function +CLANG_CFLAGS_${TARCH} += -Wno-tautological-compare +CLANG_CFLAGS_${TARCH} += -Wno-shift-overflow +CLANG_CFLAGS_${TARCH} += -Wno-address-of-packed-member +CLANG_CFLAGS_${TARCH} += -Wno-initializer-overrides +CLANG_CFLAGS_${TARCH} += -fbracket-depth=2048 +CLANG_CFLAGS_${TARCH} += -mllvm +CLANG_CFLAGS_${TARCH} += -asm-macro-max-nesting-depth=1000 CLANG_COMPILER_RT_${TARCH}:=${CC_RT_CLANG} CLANG_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_CLANG} # Leak the target arch into the preprocessor flags with clang.