diff options
| author | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2025-03-11 12:12:14 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-03-12 09:09:35 -0700 |
| commit | 77dd0429cfb0b5309b44df4acc5380aa014c5bd1 (patch) | |
| tree | 017b4fea0124fe9d7bcede13d52b49bc4121427b /mesonbuild/compilers | |
| parent | be842e80743b4531560ba54da1c070f7f79e9515 (diff) | |
| download | meson-77dd0429cfb0b5309b44df4acc5380aa014c5bd1.tar.gz | |
mesonbuild/compilers/detect.py: Support Open D ldc and dmd
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/detect.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 784e00d3d..bce0be8a8 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -1191,7 +1191,11 @@ def detect_d_compiler(env: 'Environment', for_machine: MachineChoice) -> Compile version = search_version(out) full_version = out.split('\n', 1)[0] - if 'LLVM D compiler' in out: + # The OpenD fork should stay close enough to upstream D (in + # the areas that interest us) to allow supporting them both + # without much hassle. + # See: https://github.com/orgs/opendlang/discussions/56 + if 'LLVM D compiler' in out or 'LLVM Open D compiler' in out: cls = d.LLVMDCompiler # LDC seems to require a file # We cannot use NamedTemporaryFile on windows, its documented |
