From f3e60d0d6957b7d12b09c4e13d63275e493bb7bc Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 5 Jan 2016 14:34:59 -0700 Subject: xcompile: Separate flags from clang executable We already have a CFLAGS variable - Use it for all of the flags. Change-Id: I22b4c5cf24b8743e85ffab29ddcccdc6c732ea3b Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/12840 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/xcompile/xcompile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/xcompile') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index bce81698d5..ebaf2868e2 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -350,7 +350,8 @@ test_architecture() { # FIXME: this may break in a clang && !gcc configuration, # but that's more of a clang limitation. Let's be optimistic # that this will change in the future. - CLANG="${XGCCPATH}clang -target ${clang_arch}-${TABI} -ccc-gcc-name ${GCC}" + CLANG="${XGCCPATH}clang" + CFLAGS_CLANG="-target ${clang_arch}-${TABI} $CFLAGS_CLANG -ccc-gcc-name ${GCC}" fi } -- cgit v1.2.3