From 41834bdd6016de69273aaa510ea47be660f28f10 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 5 May 2013 02:14:27 +0200 Subject: [Embtk] Give ability to specify default float abi to use at configure time Signed-off-by: Abdoulaye Walsimou Gaye --- autoconf/configure.ac | 8 ++++++++ configure | 18 +++++++++++++++++- include/llvm/Config/config.h.cmake | 3 +++ include/llvm/Config/config.h.in | 3 +++ include/llvm/Config/llvm-config.h.cmake | 3 +++ include/llvm/Config/llvm-config.h.in | 3 +++ include/llvm/Support/Host.h | 9 +++++++++ lib/Support/Unix/Host.inc | 8 ++++++++ lib/Support/Windows/Host.inc | 8 ++++++++ 9 files changed, 62 insertions(+), 1 deletion(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index a44b228334..2da5a19aeb 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -472,6 +472,14 @@ AC_ARG_WITH(default-cpu, AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_MCPU],"$with_default_cpu", [Default cpu (-mcpu=cpu) to use to all compiler invocations.]) +dnl Default float abi to use to all compiler invocations +AC_ARG_WITH(default-float, + AS_HELP_STRING([--with-default-float], + [Default float abi to use to all compiler invocations.]),, + with_default_float="") +AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_FLOAT],"$with_default_float", + [Default float abi 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])) diff --git a/configure b/configure index d8081ee6c8..46bb6110f7 100755 --- a/configure +++ b/configure @@ -1468,6 +1468,8 @@ Optional Packages: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-default-cpu Add by default -mcpu=cpu to all compiler invocations. + --with-default-float Default float abi to use to all compiler + invocations. --with-optimize-option Select the compiler options to use for optimized builds --with-extra-options Specify additional options to compile LLVM with @@ -4119,6 +4121,20 @@ _ACEOF +# Check whether --with-default-float was given. +if test "${with_default_float+set}" = set; then + withval=$with_default_float; +else + with_default_float="" +fi + + +cat >>confdefs.h <<_ACEOF +#define LLVM_DEFAULT_TARGET_FLOAT "$with_default_float" +_ACEOF + + + { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } @@ -10622,7 +10638,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <