mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
gh-106962: Detect mpicc in configure.ac (#106961)
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied.
This commit is contained in:
parent
3aeffc0d8f
commit
9a6b278769
|
@ -0,0 +1 @@
|
||||||
|
Detect MPI compilers in :file:`configure`.
|
3
configure
generated
vendored
3
configure
generated
vendored
|
@ -10154,6 +10154,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$CC" in
|
case "$CC" in
|
||||||
|
*mpicc*)
|
||||||
|
CFLAGS_NODIST="$CFLAGS_NODIST"
|
||||||
|
;;
|
||||||
*icc*)
|
*icc*)
|
||||||
# ICC needs -fp-model strict or floats behave badly
|
# ICC needs -fp-model strict or floats behave badly
|
||||||
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
|
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
|
||||||
|
|
|
@ -2656,6 +2656,9 @@ yes)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$CC" in
|
case "$CC" in
|
||||||
|
*mpicc*)
|
||||||
|
CFLAGS_NODIST="$CFLAGS_NODIST"
|
||||||
|
;;
|
||||||
*icc*)
|
*icc*)
|
||||||
# ICC needs -fp-model strict or floats behave badly
|
# ICC needs -fp-model strict or floats behave badly
|
||||||
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
|
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
|
||||||
|
|
Loading…
Reference in a new issue