summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 709fbb5ba3..58c54d3720 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -422,6 +422,17 @@ if test "$with_default_cpu" != "Unknown" ; then
[Default cpu (-mcpu=cpu) to use to all compiler invocations.])
fi
+dnl Default cpu (-mabi=abi) to use to all compiler invocations
+AC_ARG_WITH(default-abi,
+ AS_HELP_STRING([--with-default-abi],
+ [Add by default -mabi=abi to all compiler invocations.]),,
+ with_default_abi="Unknown")
+
+if test "$with_default_abi" != "Unknown" ; then
+ AC_DEFINE_UNQUOTED(DEFAULT_TARGET_ABI,"$with_default_abi",
+ [Default abi (-mabi=abi) 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],
diff --git a/configure b/configure
index 3966624d51..38930557ab 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-abi Add by default -mabi=abi to all compiler
+ invocations.
--with-default-float Default float abi to use to all compiler
invocations.
--with-default-fpu Default FPU to use to all compiler invocations, in
@@ -3981,6 +3983,23 @@ _ACEOF
fi
+# Check whether --with-default-abi was given.
+if test "${with_default_abi+set}" = set; then
+ withval=$with_default_abi;
+else
+ with_default_abi="Unknown"
+fi
+
+
+if test "$with_default_abi" != "Unknown" ; then
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_TARGET_ABI "$with_default_abi"
+_ACEOF
+
+fi
+
+
# Check whether --with-default-float was given.
if test "${with_default_float+set}" = set; then
withval=$with_default_float;
@@ -10402,7 +10421,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10405 "configure"
+#line 10424 "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 a3fc22a0e6..90c6f69a7b 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 abi (-mabi=abi) to use to all compiler invocations. */
+#undef DEFAULT_TARGET_ABI
+
/* Default float abi to use to all compiler invocations. */
#undef DEFAULT_TARGET_FLOAT