aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-23 20:07:21 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-23 20:17:37 +0300
commit5467b7d58b310c3dab975ea924de4e28fec884fc (patch)
treea32c9bfbf029ca852121be587a9f70ba21985fe1 /backends.py
parent7c6e99149bc742ba0e98521907a690a526bb894c (diff)
downloadmeson-5467b7d58b310c3dab975ea924de4e28fec884fc.zip
meson-5467b7d58b310c3dab975ea924de4e28fec884fc.tar.gz
meson-5467b7d58b310c3dab975ea924de4e28fec884fc.tar.bz2
Made Fortran static libraries work. Closes #237.
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):