diff options
author | Christoph Behle <behlec@gmail.com> | 2017-12-16 15:07:08 +0100 |
---|---|---|
committer | Christoph Behle <behlec@gmail.com> | 2017-12-16 15:07:08 +0100 |
commit | 5b83894b77d4946b66eea18f5bb44e53127869f5 (patch) | |
tree | a7bfcf1201571d11256ae24fa50e2db229b04522 /mesonbuild/environment.py | |
parent | 783263b9f4626f7267264e507d55e9fb2ba66943 (diff) | |
download | meson-5b83894b77d4946b66eea18f5bb44e53127869f5.zip meson-5b83894b77d4946b66eea18f5bb44e53127869f5.tar.gz meson-5b83894b77d4946b66eea18f5bb44e53127869f5.tar.bz2 |
More version information for D
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 8597cf0..ea4a54e 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -723,12 +723,13 @@ class Environment: except OSError: raise EnvironmentException('Could not execute D compiler "%s"' % ' '.join(exelist)) version = search_version(out) + full_version = out.split('\n', 1)[0] if 'LLVM D compiler' in out: - return compilers.LLVMDCompiler(exelist, version, is_cross) + return compilers.LLVMDCompiler(exelist, version, is_cross, full_version=full_version) elif 'gdc' in out: - return compilers.GnuDCompiler(exelist, version, is_cross) + return compilers.GnuDCompiler(exelist, version, is_cross, full_version=full_version) elif 'Digital Mars' in out: - return compilers.DmdDCompiler(exelist, version, is_cross) + return compilers.DmdDCompiler(exelist, version, is_cross, full_version=full_version) raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"') def detect_swift_compiler(self): |