diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-12-21 17:43:03 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-12-21 17:43:03 (GMT) |
commit | 6ed42ea08b3a961944e94f1dd941ffabc7657065 (patch) | |
tree | ea4e66e81398c9f47d2c7c86f533bac290bb6aa4 /configure | |
parent | a3c22424619b51e8598161beeb597d8d7ac4e1c2 (diff) | |
download | cpython-6ed42ea08b3a961944e94f1dd941ffabc7657065.zip cpython-6ed42ea08b3a961944e94f1dd941ffabc7657065.tar.gz cpython-6ed42ea08b3a961944e94f1dd941ffabc7657065.tar.bz2 |
Issue #25827: Add support for ICC to configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -789,6 +789,7 @@ with_universal_archs with_framework_name enable_framework with_gcc +with_icc with_cxx_main with_suffix enable_shared @@ -1469,6 +1470,7 @@ Optional Packages: specify an alternate name of the framework built with --enable-framework --without-gcc never use gcc + --with-icc build with icc --with-cxx-main=<compiler> compile main() and link python executable with C++ compiler @@ -3480,6 +3482,29 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 $as_echo "$without_gcc" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 +$as_echo_n "checking for --with-icc... " >&6; } + +# Check whether --with-icc was given. +if test "${with_icc+set}" = set; then : + withval=$with_icc; + case $withval in + no) CC=${CC:-cc} + with_icc=no;; + yes) CC=icc + CXX=icpc + with_icc=yes;; + *) CC=$withval + with_icc=$withval;; + esac +else + + with_icc=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 +$as_echo "$with_icc" >&6; } + # If the user switches compilers, we can't believe the cache if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" then @@ -6188,6 +6213,13 @@ $as_echo "$CC" >&6; } ;; esac +# ICC needs -fp-model strict or floats behave badly +case "$CC" in +*icc*) + BASECFLAGS="$BASECFLAGS -fp-model strict" + ;; +esac + if test "$Py_DEBUG" = 'true'; then : else @@ -6334,6 +6366,12 @@ fi # Enable PGO flags. + + + + + + # Extract the first word of "llvm-profdata", so it can be a program name with args. set dummy llvm-profdata; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -6405,6 +6443,12 @@ case $CC in ;; esac ;; + *icc*) + PGO_PROF_GEN_FLAG="-prof-gen" + PGO_PROF_USE_FLAG="-prof-use" + LLVM_PROF_MERGER="true" + LLVM_PROF_FILE="" + ;; esac |