summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-07 22:01:37 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-10 16:15:30 +0200
commit7c61d77dc58831d3f47753c7454b66a788727e71 (patch)
treea2c608f34e3c0cffc2a4998e55dc7ce88cfd437b /autoconf
parentc08b9b80cf40f55e711664c9b4e5ca09f3d94ddd (diff)
downloadllvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.gz
llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.bz2
llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.xz
[Embtk]: Give ability to specify default target ABI at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> (cherry picked from commit 6ab8513df36438aa2c16facc94f306891446e061)
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 118bf9488a..13baa3e492 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -485,6 +485,14 @@ if test "x$with_default_hash_style" != "x" ; then
[Default hash-style to use to all linker 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 (if --with-default-abi=abi) to all compiler invocations.]),,
+ with_default_abi="")
+AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_ABI],"$with_default_abi",
+ [Add by default -mabi=abi to all compiler invocations.])
+
dnl Check for the endianness of the target
AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))