summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-05 14:34:59 -0700
committerMartin Roth <martinroth@google.com>2016-01-07 17:15:03 +0100
commitf3e60d0d6957b7d12b09c4e13d63275e493bb7bc (patch)
treecb9a685adfd605ed2efc1ce9edddfaf118f18198 /util
parent51d4de818dfd92ab7a17c473fd4c5b6bd32837f8 (diff)
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 <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12840 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile3
1 files changed, 2 insertions, 1 deletions
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
}