summaryrefslogtreecommitdiffstats
path: root/Build.py
diff options
context:
space:
mode:
Diffstat (limited to 'Build.py')
-rw-r--r--Build.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build.py b/Build.py
index 39f0991..5283761 100644
--- a/Build.py
+++ b/Build.py
@@ -753,10 +753,12 @@ class BuildContext(Context.Context):
else:
ln = self.launch_node()
if ln.is_child_of(self.bldnode):
- Logs.warn('Building from the build directory, forcing --targets=*')
+ if Logs.verbose > 1:
+ Logs.warn('Building from the build directory, forcing --targets=*')
ln = self.srcnode
elif not ln.is_child_of(self.srcnode):
- Logs.warn('CWD %s is not under %s, forcing --targets=* (run distclean?)', ln.abspath(), self.srcnode.abspath())
+ if Logs.verbose > 1:
+ Logs.warn('CWD %s is not under %s, forcing --targets=* (run distclean?)', ln.abspath(), self.srcnode.abspath())
ln = self.srcnode
def is_post(tg, ln):