diff options
author | maiphi <maiphi.public@gmx.net> | 2018-05-26 14:13:15 (GMT) |
---|---|---|
committer | maiphi <maiphi.public@gmx.net> | 2018-05-26 14:13:15 (GMT) |
commit | 4850f5bbc3761b3c84f2788e00968d990acd7e4c (patch) | |
tree | 0b1cde5ce26557b21a44a51bffbae6650d407774 /src | |
parent | 9f4d7333b6ec4f2d4a0754c65157b103bfb6884f (diff) | |
download | SCons-4850f5bbc3761b3c84f2788e00968d990acd7e4c.zip SCons-4850f5bbc3761b3c84f2788e00968d990acd7e4c.tar.gz SCons-4850f5bbc3761b3c84f2788e00968d990acd7e4c.tar.bz2 |
Added missing FORTRANMODDIRPREFIX=-J to the gfortran tool.
Also added a test which compiles a .f90 source file to an executable with
gfortran and checks that module files are place in FORTRANMODDID correctly.
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 1 | ||||
-rw-r--r-- | src/engine/SCons/Tool/gfortran.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index f9cb5c4..0544f60 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -10,6 +10,7 @@ RELEASE 3.1.0.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE From Philipp Maierhöfer - Added a __hash__ method to the class Scons.Subst.Literal. Required when substituting Literal objects when SCons runs with Python 3. + - Added missing FORTRANMODDIRPREFIX to the gfortran tool. From Richard West: - Add SConstruct.py, Sconstruct.py, sconstruct.py to the search path for the root SConstruct file. diff --git a/src/engine/SCons/Tool/gfortran.py b/src/engine/SCons/Tool/gfortran.py index d33bf52..45750d6 100644 --- a/src/engine/SCons/Tool/gfortran.py +++ b/src/engine/SCons/Tool/gfortran.py @@ -54,6 +54,8 @@ def generate(env): env['INC%sPREFIX' % dialect] = "-I" env['INC%sSUFFIX' % dialect] = "" + env['FORTRANMODDIRPREFIX'] = "-J" + def exists(env): return env.Detect('gfortran') |