8000 Merge pull request #16730 from danbeibei/fcompiler · numpy/numpy@e7c1d01 · GitHub
[go: up one dir, main page]

Skip to content

Commit e7c1d01

Browse files
authored
Merge pull request #16730 from danbeibei/fcompiler
ENH: Use f90 compiler specified in f2py command line args for pgi compiler
2 parents aca0ce6 + fb79b9b commit e7c1d01

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Use f90 compiler specified in command line args
2+
--------------------------------------------------------
3+
4+
The compiler command selection for Fortran Portland Group Compiler is changed in `numpy.distutils.fcompiler`.
5+
This only affects the linking command.
6+
This forces the use of the executable provided by the command line option (if provided)
7+
instead of the pgfortran executable.
8+
If no executable is provided to the command line option it defaults to the pgf90 executable,
9+
wich is an alias for pgfortran according to the PGI documentation.

numpy/distutils/fcompiler/pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PGroupFCompiler(FCompiler):
3131
'compiler_f77': ["pgfortran"],
3232
'compiler_fix': ["pgfortran", "-Mfixed"],
3333
'compiler_f90': ["pgfortran"],
34-
'linker_so': ["pgfortran"],
34+
'linker_so': ["<F90>"],
3535
'archiver': ["ar", "-cr"],
3636
'ranlib': ["ranlib"]
3737
}

0 commit comments

Comments
 (0)
0