summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Script
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-13 20:44:44 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-13 20:44:44 (GMT)
commit3c4eea886bf6ed264df3e7a521e196eaf6478378 (patch)
tree545e613b2d7da496fda8f0b0a3642b5f2c86ae42 /src/engine/SCons/Script
parent0fd2b45330d0d7c3a5aa4aec4a8c0456f5c0ddb6 (diff)
downloadSCons-3c4eea886bf6ed264df3e7a521e196eaf6478378.zip
SCons-3c4eea886bf6ed264df3e7a521e196eaf6478378.tar.gz
SCons-3c4eea886bf6ed264df3e7a521e196eaf6478378.tar.bz2
Allow modification of BUILD_TARGETS from with SConscript files. (Stanislav Baranov)
Diffstat (limited to 'src/engine/SCons/Script')
-rw-r--r--src/engine/SCons/Script/Main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py
index c41587c..8156208 100644
--- a/src/engine/SCons/Script/Main.py
+++ b/src/engine/SCons/Script/Main.py
@@ -1080,13 +1080,15 @@ def _main(args, parser):
fs.set_max_drift(ssoptions.get('max_drift'))
lookup_top = None
- if targets:
+ if SCons.Script.BUILD_TARGETS:
# They specified targets on the command line, so if they
# used -u, -U or -D, we have to look up targets relative
# to the top, but we build whatever they specified.
if target_top:
lookup_top = fs.Dir(target_top)
target_top = None
+
+ targets = SCons.Script.BUILD_TARGETS
else:
# There are no targets specified on the command line,
# so if they used -u, -U or -D, we may have to restrict