summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vanzo <daniel.vanzo@external.total.com>2020-07-02 15:01:06 +0200
committerDaniel Vanzo <daniel.vanzo@external.total.com>2020-07-28 14:09:53 +0200
commitfb79b9b5233c4059b259d43417cecfb58b2dc367 (patch)
tree7a24c876b99d844d4a4f3bb680f62796d2719916
parent4690248dd48e11e57167da20e54dc21a5d853bfa (diff)
downloadnumpy-fb79b9b5233c4059b259d43417cecfb58b2dc367.tar.gz
ENH: Use f90 compiler specified in command line args for pgi compilers. Issue #16481
-rw-r--r--doc/release/upcoming_changes/16730.improvement.rst9
-rw-r--r--numpy/distutils/fcompiler/pg.py2
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/release/upcoming_changes/16730.improvement.rst b/doc/release/upcoming_changes/16730.improvement.rst
new file mode 100644
index 000000000..44ec03caf
--- /dev/null
+++ b/doc/release/upcoming_changes/16730.improvement.rst
@@ -0,0 +1,9 @@
+Use f90 compiler specified in command line args
+--------------------------------------------------------
+
+The compiler command selection for Fortran Portland Group Compiler is changed in `numpy.distutils.fcompiler`.
+This only affects the linking command.
+This forces the use of the executable provided by the command line option (if provided)
+instead of the pgfortran executable.
+If no executable is provided to the command line option it defaults to the pgf90 executable,
+wich is an alias for pgfortran according to the PGI documentation.
diff --git a/numpy/distutils/fcompiler/pg.py b/numpy/distutils/fcompiler/pg.py
index eb628cb63..72442c4fe 100644
--- a/numpy/distutils/fcompiler/pg.py
+++ b/numpy/distutils/fcompiler/pg.py
@@ -31,7 +31,7 @@ class PGroupFCompiler(FCompiler):
'compiler_f77': ["pgfortran"],
'compiler_fix': ["pgfortran", "-Mfixed"],
'compiler_f90': ["pgfortran"],
- 'linker_so': ["pgfortran"],
+ 'linker_so': ["<F90>"],
'archiver': ["ar", "-cr"],
'ranlib': ["ranlib"]
}