aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends.py b/backends.py
index d3c3157..47b39d1 100644
--- a/backends.py
+++ b/backends.py
@@ -220,6 +220,12 @@ class Backend():
if isinstance(target, build.Executable):
commands += dep.get_exe_args()
+ # Fortran rquires extra include directives.
+ if compiler.language == 'fortran':
+ for lt in target.link_targets:
+ priv_dir = os.path.join(lt.subdir, lt.get_basename() + lt.type_suffix())
+ incflag = compiler.get_include_args(priv_dir)
+ commands += incflag
return commands
def build_target_link_arguments(self, compiler, deps):