[Scons-users] comiler flags not applied to all files

Nikola Radovanovic nikola.radovanovic at schneider-electric-dms.com
Fri Jul 12 02:49:40 EDT 2013


thanks for the reply, it was really helpful :) I've set FORTRANFLAGS to F90FLAGS and it is working now

best regards

On 07/11/2013 05:42 PM, Dirk Bächle wrote:
Hi Nikola,

On 11.07.2013 13:19, Nikola Radovanovic wrote:
hi all,
I have a bunch of Fortran files; mainly with *.f90 extension, but also few with *.for extension. during compilation, i have noticed that F90FLAGS which I've set to build environment are applied only to *.f90, but not to *.for files (which causes me problems later at link stage).

[...]


per default, the *.for extension is linked to the standard Fortran compiler (FORTRANCOM) and uses FORTRANFLAGS, not F90FLAGS.
You can set FORTRANFLAGS to the same value as F90FLAGS and should get what you want.

Another option would be to link the *.for files to the F90 compiler as well, if you're sure that you want everything with this extension to get processed with the F90* setup too. For this, you would redefine the Fortran file suffix lists as follows:

env = Environment(FORTRANFILESUFFIXES=['.f', '.ftn'],
F90FILESUFFIXES=['.for','.f90'],
tools= ...
)

I hope this helps you further.

Best regards,

Dirk




_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
http://four.pairlist.net/mailman/listinfo/scons-users



--
__________________________________________________________________________________________________________________

Nikola Radovanovic | Schneider Electric DMS NS | Smart Grid IT | SERBIA | CPASv2 team deputy
Phone: +381 (0)21 488 3633 | Fax: +381 (0)21 488 3789 | Mobile: +381 (0)64 29 74 528
Email: nikola.radovanovic at schneider-electric-dms.com<mailto:nikola.radovanovic at schneider-electric-dms.com> | Site: www.schneider-electric-dms.com<http://www.schneider-electric-dms.com/> | Address: Narodnog fronta 25A-D, 21000 Novi Sad
*** Please consider the environment before printing this e-mail

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130712/e5ddd9a3/attachment.html


More information about the Scons-users mailing list