Skip to content

Commit d87d67b

Browse files
[3.12] gh-106962: Detect mpicc in configure.ac (GH-106961) (#107081)
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied. (cherry picked from commit 9a6b278) Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
1 parent 0d4a766 commit d87d67b

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)