aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-02-25 15:49:58 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-25 16:07:53 +0200
commit19b361e4f08f165e60679495518809ad7a925cce (patch)
tree662a7089cf110fedf2ca2f8977c60d10c3b5396d /mesonbuild/backend
parent8a68dc0179bc63303a8ef8c4a339cc01ca406084 (diff)
downloadmeson-dimpdir.zip
meson-dimpdir.tar.gz
meson-dimpdir.tar.bz2
Use include_directories for D impdirs.dimpdir
Change the code to store D properties as plain data. Only convert them to compiler flags in the backend. This also means we can fully parse D arguments without needing to know the compiler being used.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/ninjabackend.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 8b616a6..8577bc7 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2257,6 +2257,9 @@ rule FORTRAN_DEP_HACK
depelem.write(outfile)
commands += compiler.get_module_outdir_args(self.get_target_private_dir(target))
+ if compiler.language == 'd':
+ commands += compiler.get_feature_args(target.d_features, self.build_to_src)
+
element = NinjaBuildElement(self.all_outputs, rel_obj, compiler_name, rel_src)
for d in header_deps:
if isinstance(d, File):