Skip to content

Commit

Permalink
pythongh-106962: Detect mpicc in configure.ac (python#106961)
Browse files Browse the repository at this point in the history
Don't let autoconf mistake MPI compilers for Intel compilers;
filter out the MPI case to prevent Intel specific options from being applied.
  • Loading branch information
LukasvdWiel authored and mementum committed Jul 23, 2023
1 parent fdbccdc commit 406a7e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
@@ -0,0 +1 @@
Detect MPI compilers in :file:`configure`.
3 changes: 3 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -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"
Expand Down

0 comments on commit 406a7e8

Please sign in to comment.