environment: annotate detect_ninja

for mtest
pull/5395/head
Dylan Baker 5 years ago
parent 75aa3d096c
commit 96766010c4
  1. 2
      mesonbuild/environment.py

@ -114,7 +114,7 @@ def find_coverage_tools():
return gcovr_exe, gcovr_new_rootdir, lcov_exe, genhtml_exe
def detect_ninja(version='1.5', log=False):
def detect_ninja(version: str = '1.5', log: bool = False) -> str:
env_ninja = os.environ.get('NINJA', None)
for n in [env_ninja] if env_ninja else ['ninja', 'ninja-build', 'samu']:
try:

Loading…
Cancel
Save