From bbdb0315fc9b1cd47a4f33e017c73d77d5af8f73 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 5 Feb 2010 11:51:46 +0000 Subject: [PATCH] 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] --- src/tools/pathscale.jam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/pathscale.jam b/src/tools/pathscale.jam index 4a12479e3..f1dd149a7 100644 --- a/src/tools/pathscale.jam +++ b/src/tools/pathscale.jam @@ -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 * )