summaryrefslogtreecommitdiffstats
path: root/SCons/Tool/ninja/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Tool/ninja/__init__.py')
-rw-r--r--SCons/Tool/ninja/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/SCons/Tool/ninja/__init__.py b/SCons/Tool/ninja/__init__.py
index 8207b15..e346e7d 100644
--- a/SCons/Tool/ninja/__init__.py
+++ b/SCons/Tool/ninja/__init__.py
@@ -417,6 +417,8 @@ def generate(env):
def ninja_execute(self):
target = self.targets[0]
+ if target.get_env().get('NINJA_SKIP'):
+ return
if target.check_attributes('ninja_file') is None or not target.is_conftest:
NINJA_STATE.add_build(target)
else: