[Scons-users] ifort (maybe general Fortran): Module directory issues

Markus Hrywniak markus.hrywniak at rwth-aachen.de
Fri Mar 28 05:00:42 EDT 2014


On 27.03.2014 18:41, Dirk Bächle wrote:

>

> You should be able to suppress this, by redefining the variable in

> question after the Fortran tool was initialized:

>

> env = Environment()

> env['_FORTRANMODFLAG'] = '$( ${_concat(FORTRANMODDIRPREFIX,

> FORTRANMODDIR, FORTRANMODDIRSUFFIX, __env__, lambda x: x, TARGET,

> SOURCE)} $)'

>

> Then only the directory you specified via FORTRANMODDIR should get added

> to the command line (untested).


Thank you!
Helps (sort-of), but it also prevents any of the '#'-pinning magic from
happening to the module path (i.e. I need to change '#build' to
'build'), which is not always possible. For me it's good enough though.
IMHO this still seems like a slight bug, though. I will see if I can
come up with something that does not break other uses of VariantDir and
the like.


More information about the Scons-users mailing list