summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure b/configure
index cbda923cc7..d8081ee6c8 100755
--- a/configure
+++ b/configure
@@ -1466,6 +1466,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
@@ -4103,6 +4105,20 @@ HOST_ARCH=$host_arch
+# Check whether --with-default-cpu was given.
+if test "${with_default_cpu+set}" = set; then
+ withval=$with_default_cpu;
+else
+ with_default_cpu=""
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define LLVM_DEFAULT_TARGET_MCPU "$with_default_cpu"
+_ACEOF
+
+
+
{ 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; }
@@ -10606,7 +10622,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10609 "configure"
+#line 10625 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H