diff options
Diffstat (limited to 'environment.py')
-rw-r--r-- | environment.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/environment.py b/environment.py index 4ae5922..58d0219 100644 --- a/environment.py +++ b/environment.py @@ -1507,10 +1507,8 @@ def find_valgrind(): def detect_ninja(): for n in ['ninja', 'ninja-build']: - # Plain 'ninja' or 'ninja -h' yields an error - # code. Thanks a bunch, guys. try: - p = subprocess.Popen([n, '-t', 'list'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + p = subprocess.Popen([n, '--version'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) except FileNotFoundError: continue p.communicate() |