diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-30 19:48:30 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-30 19:48:30 +0100 |
commit | f77ece688cc2ea8dfd9d2404ad9c7cc77c787da2 (patch) | |
tree | 7870cc2f23e3cde27b8be97cb1219119c140345c /autoconf | |
parent | 815f762d7867419ccfee5dc80c4ed6c10ceb13e8 (diff) | |
download | llvm-f77ece688cc2ea8dfd9d2404ad9c7cc77c787da2.tar.gz llvm-f77ece688cc2ea8dfd9d2404ad9c7cc77c787da2.tar.bz2 llvm-f77ece688cc2ea8dfd9d2404ad9c7cc77c787da2.tar.xz |
[Embtk] Give ability to specify default -mcpu
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 7715531a33..7babb90767 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -411,6 +411,17 @@ 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.]),, + withval="Unknown") + +if test "$withval" != "Unknown" ; then + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_MCPU,"$withval", + [Default cpu (-mcpu=cpu) 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])) |