Skip to content

Commit

Permalink
pythongh-106962: Detect mpicc in configure.ac (pythonGH-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.
(cherry picked from commit 9a6b278)

Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
  • Loading branch information
LukasvdWiel authored and miss-islington committed Jul 22, 2023
1 parent 0d4a766 commit dece2af
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 dece2af

Please sign in to comment.