mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 12:42:11 +00:00
Use the pathf90 compiler for all compilation.
Patch from Spencer E. Olson. Here's the explanation from email: The version of pathscale that I have access to is 3.2 and there doesn't seem to be a pathf77 executable. The man pages do not reference it, and there is also not a -f77 option that specifies that the code is fortran 77. Rather, the man pages indicate that pathscale only recognizes the difference between free form and fixed form fortran instead of F77 vs F90 vs F95. Does anyone have an available installation that differs from this? If not, I'll submit another small patch for changing this to using pathf90 to compile f77 code--I've tested it and it appears to work well enough. [SVN r59508]
This commit is contained in:
@@ -36,7 +36,7 @@ rule init ( version ? : command * : options * )
|
||||
|
||||
# fortran support
|
||||
local f-command = [ common.get-invocation-command pathscale : pathf90 : $(command) ] ;
|
||||
local command_f = $(command_f[1--2]) $(f-command[-1]:B=pathf77) ;
|
||||
local command_f = $(command_f[1--2]) $(f-command[-1]:B=pathf90) ;
|
||||
local command_f90 = $(command_f[1--2]) $(f-command[-1]:B=pathf90) ;
|
||||
|
||||
toolset.flags pathscale CONFIG_F_COMMAND $(condition) : $(command_f) ;
|
||||
@@ -87,7 +87,7 @@ actions compile.c++
|
||||
|
||||
actions compile.fortran
|
||||
{
|
||||
"$(CONFIG_F_COMMAND)" -f77 $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
|
||||
"$(CONFIG_F_COMMAND)" $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
|
||||
}
|
||||
|
||||
rule compile.fortran90 ( targets * : sources * : properties * )
|
||||
|
||||
Reference in New Issue
Block a user