aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-04 18:02:44 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-04 18:02:44 +0300
commit65be7a9ab746285c41b7ff7b0744fdeda0b02f2b (patch)
treeed79fb757f9d9b30a83a0ab5be1bb383b906c5e1 /backends.py
parentc0c2c35496f2832fee7623ec268e87e23b58a33f (diff)
downloadmeson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.zip
meson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.tar.gz
meson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.tar.bz2
A few Fedora fixes.
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends.py b/backends.py
index 8b859aa..0c8266e 100644
--- a/backends.py
+++ b/backends.py
@@ -834,8 +834,11 @@ class NinjaBackend(Backend):
default = 'default all\n\n'
outfile.write(default)
+ ninja_command = environment.detect_ninja()
+ if ninja_command is None:
+ raise RuntimeError('Could not detect ninja command')
elem = NinjaBuildElement('clean', 'CUSTOM_COMMAND', '')
- elem.add_item('COMMAND', ['ninja', '-t', 'clean'])
+ elem.add_item('COMMAND', [ninja_command, '-t', 'clean'])
elem.add_item('description', 'Cleaning')
if self.environment.coredata.coverage:
self.generate_gcov_clean(outfile)