]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106962: Detect mpicc in configure.ac (#106961)
authorLukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
Sat, 22 Jul 2023 23:20:03 +0000 (01:20 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 23:20:03 +0000 (23:20 +0000)
Don't let autoconf mistake MPI compilers for Intel compilers;
filter out the MPI case to prevent Intel specific options from being applied.

Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst b/Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst
new file mode 100644 (file)
index 0000000..32e196f
--- /dev/null
@@ -0,0 +1 @@
+Detect MPI compilers in :file:`configure`.
index e6fb5e3c2b0c2fcce9442b2d1bfea3614f3d5499..18d404c8dc060506b647af34bc84249956b83bc8 100755 (executable)
--- a/configure
+++ b/configure
@@ -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"
index a1ee78047692fdb9532984c50fe5f09bb745b197..cdb88a3071976c0c47a1b3a739c04bec125922c1 100644 (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"