diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-02-25 19:33:08 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-02-26 01:26:54 +0200 |
| commit | a81207881b2ad170ab4567b7328cbde77ef83e80 (patch) | |
| tree | 3a7ead40372170c9c4db605b0e5be20601544fd6 | |
| parent | 9291f37b65b3cb4e9e553feccffca125699fbda8 (diff) | |
| download | meson-a81207881b2ad170ab4567b7328cbde77ef83e80.tar.gz | |
Disable D tests if dmd install is broken.
| -rwxr-xr-x | run_project_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index c35928fa4..030cd51ac 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -440,6 +440,14 @@ def have_d_compiler(): elif shutil.which("gdc"): return True elif shutil.which("dmd"): + # The Windows installer sometimes produces a DMD install + # that exists but segfaults every time the compiler is run. + # Don't know why. Don't know how to fix. Skip in this case. + cp = subprocess.run(['dmd', '--version'], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + if cp.stdout == b'': + return False return True return False |
