Skip to content

Commit 9a6b278

Browse files
authored
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.
1 parent 3aeffc0 commit 9a6b278

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Detect MPI compilers in :file:`configure`.

configure

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,6 +2656,9 @@ yes)
26562656
esac
26572657

26582658
case "$CC" in
2659+
*mpicc*)
2660+
CFLAGS_NODIST="$CFLAGS_NODIST"
2661+
;;
26592662
*icc*)
26602663
# ICC needs -fp-model strict or floats behave badly
26612664
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"

0 commit comments

Comments
 (0)