diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-03 17:54:47 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-13 01:56:54 +0200 |
commit | af84995d06bb792e77e84f9a04361e8b0268e800 (patch) | |
tree | 7f5bbc7ed58d568c850367893c70beecdfb73d0a /configure | |
parent | ebef5e2348f15db2e965b6392375323719ccd54f (diff) | |
download | llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.gz llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.bz2 llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.xz |
[Embtk] Give ability to specify default -mcpu
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |