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:
Lukas van de Wiel 2023-07-23 01:20:03 +02:00 committed by GitHub
parent 3aeffc0d8f
commit 9a6b278769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
Detect MPI compilers in :file:`configure`.

3
configure generated vendored
View file

@ -10154,6 +10154,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \
esac
case "$CC" in
*mpicc*)
CFLAGS_NODIST="$CFLAGS_NODIST"
;;
*icc*)
# ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"

View file

@ -2656,6 +2656,9 @@ yes)
esac
case "$CC" in
*mpicc*)
CFLAGS_NODIST="$CFLAGS_NODIST"
;;
*icc*)
# ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"