summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-07-08 14:26:46 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-07-10 05:06:38 +0000
commit2a307e7d1b4a34f5257844c42f66f126e4d71708 (patch)
tree453c974c5cefdf04d0ed21da552e1c78a826d078 /util
parentf94ccc236fb4193de14f6fbf7b4ffd55920f6000 (diff)
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>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile19
1 files changed, 13 insertions, 6 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index ff067d2f6a..3948811782 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -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.