summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-03 17:54:47 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-13 01:56:54 +0200
commitaf84995d06bb792e77e84f9a04361e8b0268e800 (patch)
tree7f5bbc7ed58d568c850367893c70beecdfb73d0a /autoconf
parentebef5e2348f15db2e965b6392375323719ccd54f (diff)
downloadllvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.gz
llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.bz2
llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.xz
[Embtk] Give ability to specify default -mcpu
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 7b4bae7e71..a44b228334 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -464,6 +464,14 @@ fi
AC_SUBST(HOST_ARCH,$host_arch)
+dnl Default cpu (-mcpu=cpu) to use to all compiler invocations
+AC_ARG_WITH(default-cpu,
+ AS_HELP_STRING([--with-default-cpu],
+ [Add by default -mcpu=cpu to all compiler invocations.]),,
+ with_default_cpu="")
+AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_MCPU],"$with_default_cpu",
+ [Default cpu (-mcpu=cpu) to use to all compiler invocations.])
+
dnl Check for the endianness of the target
AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))