summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-30 19:48:30 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-30 19:48:30 +0100
commitf77ece688cc2ea8dfd9d2404ad9c7cc77c787da2 (patch)
tree7870cc2f23e3cde27b8be97cb1219119c140345c /configure
parent815f762d7867419ccfee5dc80c4ed6c10ceb13e8 (diff)
downloadllvm-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 'configure')
-rwxr-xr-xconfigure21
1 files changed, 20 insertions, 1 deletions
diff --git a/configure b/configure
index 4fa0705491..6ae92aa528 100755
--- a/configure
+++ b/configure
@@ -1440,6 +1440,8 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-default-cpu Add by default -mcpu=cpu 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
@@ -3955,6 +3957,23 @@ HOST_ARCH=$host_arch
+# Check whether --with-default-cpu was given.
+if test "${with_default_cpu+set}" = set; then
+ withval=$with_default_cpu;
+else
+ withval="Unknown"
+fi
+
+
+if test "$withval" != "Unknown" ; then
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_TARGET_MCPU "$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; }
@@ -10316,7 +10335,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10317 "configure"
+#line 10338 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H