diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2016-08-18 10:42:12 +0200 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2016-08-19 03:02:51 +0200 |
commit | 56823272ab96892e4f6c8dd86842d8c930281209 (patch) | |
tree | 84587d66fd89acfbb167d372dfdc206eabcdf3d7 /mesonbuild/interpreter.py | |
parent | 58359c8fac09ecd06af1d389bfad8cd65e831e2a (diff) | |
download | meson-56823272ab96892e4f6c8dd86842d8c930281209.zip meson-56823272ab96892e4f6c8dd86842d8c930281209.tar.gz meson-56823272ab96892e4f6c8dd86842d8c930281209.tar.bz2 |
Implement D support
This patch adds support for the D programming language[1] to Meson.
The following compilers are supported:
* LDC
* GDC
* DMD
[1]: http://dlang.org/
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 8645b68..5a6d702 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1566,6 +1566,10 @@ class Interpreter(): comp = self.environment.detect_vala_compiler() if need_cross_compiler: cross_comp = comp # Vala is too (I think). + elif lang == 'd': + comp = self.environment.detect_d_compiler() + if need_cross_compiler: + cross_comp = comp # D as well (AFAIK). elif lang == 'rust': comp = self.environment.detect_rust_compiler() if need_cross_compiler: |