diff options
author | Russel Winder <russel@winder.org.uk> | 2015-01-07 11:46:42 (GMT) |
---|---|---|
committer | Russel Winder <russel@winder.org.uk> | 2015-01-07 11:46:42 (GMT) |
commit | 4d45e513c90ddeb3b93c44c2264258aa44b7b36b (patch) | |
tree | 28574dd01e67446c95bd07c65e2ecb124bb42925 /src/engine/SCons/Tool/FortranCommon.py | |
parent | fc7798ccedd016225f3e9d4cf9ba4dee40a5b1a4 (diff) | |
download | SCons-4d45e513c90ddeb3b93c44c2264258aa44b7b36b.zip SCons-4d45e513c90ddeb3b93c44c2264258aa44b7b36b.tar.gz SCons-4d45e513c90ddeb3b93c44c2264258aa44b7b36b.tar.bz2 |
Update Fortran tooling to support .f08 file extensions.
Diffstat (limited to 'src/engine/SCons/Tool/FortranCommon.py')
-rw-r--r-- | src/engine/SCons/Tool/FortranCommon.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/FortranCommon.py b/src/engine/SCons/Tool/FortranCommon.py index 4c5730c..2df2a32 100644 --- a/src/engine/SCons/Tool/FortranCommon.py +++ b/src/engine/SCons/Tool/FortranCommon.py @@ -247,6 +247,21 @@ def add_f03_to_env(env): DialectAddToEnv(env, "F03", F03Suffixes, F03PPSuffixes, support_module = 1) +def add_f08_to_env(env): + """Add Builders and construction variables for f08 to an Environment.""" + try: + F08Suffixes = env['F08FILESUFFIXES'] + except KeyError: + F08Suffixes = ['.f08'] + + try: + F08PPSuffixes = env['F08PPFILESUFFIXES'] + except KeyError: + F08PPSuffixes = [] + + DialectAddToEnv(env, "F08", F08Suffixes, F08PPSuffixes, + support_module = 1) + def add_all_to_env(env): """Add builders and construction variables for all supported fortran dialects.""" @@ -255,6 +270,7 @@ def add_all_to_env(env): add_f90_to_env(env) add_f95_to_env(env) add_f03_to_env(env) + add_f08_to_env(env) # Local Variables: # tab-width:4 |