From af84995d06bb792e77e84f9a04361e8b0268e800 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Thu, 3 Apr 2014 17:54:47 +0200 Subject: [Embtk] Give ability to specify default -mcpu Signed-off-by: Abdoulaye Walsimou Gaye --- autoconf/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoconf') 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])) -- cgit v1.2.3