diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2018-01-07 17:57:43 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-07 19:52:07 +0200 |
commit | 5133d8650fb12e1635fda6a36794fdff9262bb7a (patch) | |
tree | bb8ae50a5dc0914c12981d3ed2b73c717c440456 /mesonbuild/environment.py | |
parent | 392b3d8bc774120a20595ed3faf135db53f850c2 (diff) | |
download | meson-5133d8650fb12e1635fda6a36794fdff9262bb7a.zip meson-5133d8650fb12e1635fda6a36794fdff9262bb7a.tar.gz meson-5133d8650fb12e1635fda6a36794fdff9262bb7a.tar.bz2 |
d: Detect recent DMD compilers
They now are published by the D Language Foundation, and not Digital
Mars. Therefore, their signature has changed slightly.
(We can not check for 'DMD', because that string appears in every
compiler version output to denote the frontend version used by the
compiler).
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 0c9a2f3..e5aa43e 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -731,7 +731,7 @@ class Environment: return compilers.LLVMDCompiler(exelist, version, is_cross, full_version=full_version) elif 'gdc' in out: return compilers.GnuDCompiler(exelist, version, is_cross, full_version=full_version) - elif 'Digital Mars' in out: + elif 'The D Language Foundation' in out or 'Digital Mars' in out: return compilers.DmdDCompiler(exelist, version, is_cross, full_version=full_version) raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"') |