diff options
Diffstat (limited to 'src/engine/SCons/Script/Main.py')
-rw-r--r-- | src/engine/SCons/Script/Main.py | 4 |
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 |