From: Gabe Black Date: Tue, 10 Apr 2012 06:20:30 +0000 (-0700) Subject: tests: Fix building unit tests. X-Git-Tag: stable_2012_06_28~131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15ca4f2fc7c81bb3ade68cbff7d58bd01aa00d33;p=gem5.git tests: Fix building unit tests. Unit tests shouldn't build in gem5's main function because they have thier own. --- diff --git a/src/SConscript b/src/SConscript index 5a7d7d29d..9f11a45f3 100755 --- a/src/SConscript +++ b/src/SConscript @@ -901,7 +901,7 @@ def makeEnv(label, objsfx, strip = False, **kwargs): test_sources = Source.get(**flags) test_objs = [ make_obj(s, static=True) for s in test_sources ] testname = "unittest/%s.%s" % (test.target, label) - new_env.Program(testname, main_objs + test_objs + static_objs) + new_env.Program(testname, test_objs + static_objs) progname = exename if strip: