summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-31 00:45:38 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-31 00:45:38 +0100
commit2dfd743d0243454628ff173fbf64165f435e2690 (patch)
tree4e0d041d86de4b4248237e7085b5d7f553cf73fe
parentf77ece688cc2ea8dfd9d2404ad9c7cc77c787da2 (diff)
downloadllvm-2dfd743d0243454628ff173fbf64165f435e2690.tar.gz
llvm-2dfd743d0243454628ff173fbf64165f435e2690.tar.bz2
llvm-2dfd743d0243454628ff173fbf64165f435e2690.tar.xz
[Embtk] Give ability to specify default float abi to use
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--autoconf/configure.ac11
-rwxr-xr-xconfigure21
-rw-r--r--include/llvm/Config/config.h.in3
3 files changed, 34 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 7babb90767..3756c4f9ce 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -422,6 +422,17 @@ if test "$withval" != "Unknown" ; then
[Default cpu (-mcpu=cpu) to use to all compiler invocations.])
fi
+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.]),,
+ withval="Unknown")
+
+if test "$withval" != "Unknown" ; then
+ AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FLOAT,"$withval",
+ [Default float abi to use to all compiler invocations.])
+fi
+
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 6ae92aa528..f01670ab1b 100755
--- a/configure
+++ b/configure
@@ -1442,6 +1442,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
@@ -3974,6 +3976,23 @@ _ACEOF
fi
+# Check whether --with-default-float was given.
+if test "${with_default_float+set}" = set; then
+ withval=$with_default_float;
+else
+ withval="Unknown"
+fi
+
+
+if test "$withval" != "Unknown" ; then
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_TARGET_FLOAT "$withval"
+_ACEOF
+
+fi
+
+
{ 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; }
@@ -10335,7 +10354,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10338 "configure"
+#line 10357 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 2334d3894e..8644a3e9e0 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -18,6 +18,9 @@
/* Default <path> to all compiler invocations for --sysroot=<path>. */
#undef DEFAULT_SYSROOT
+/* Default float abi to use to all compiler invocations. */
+#undef DEFAULT_TARGET_FLOAT
+
/* Default cpu (-mcpu=cpu) to use to all compiler invocations. */
#undef DEFAULT_TARGET_MCPU