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>
This commit is contained in:
Elyes Haouas
2024-07-08 14:26:46 +02:00
committed by Felix Singer
parent f94ccc236f
commit 2a307e7d1b

View File

@@ -260,13 +260,20 @@ fi
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.