scons: make default target work again
authorNathan Binkert <nate@binkert.org>
Tue, 21 Apr 2009 17:49:06 +0000 (10:49 -0700)
committerNathan Binkert <nate@binkert.org>
Tue, 21 Apr 2009 17:49:06 +0000 (10:49 -0700)
SConstruct

index baa4864a9eacd1b0bc4551e32c72ed6025fc5464..cc5bbbdd9354931b2833a30fdb88934aee361a98 100644 (file)
@@ -273,7 +273,7 @@ if COMMAND_LINE_TARGETS:
                     COMMAND_LINE_TARGETS]
 else:
     # Default targets are relative to root of tree
-    abs_targets = [ normpath(joinpath(ROOT, str(x))) for x in \
+    abs_targets = [ normpath(joinpath(env.root.abspath, str(x))) for x in \
                     DEFAULT_TARGETS]