From 15ca4f2fc7c81bb3ade68cbff7d58bd01aa00d33 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 9 Apr 2012 23:20:30 -0700 Subject: [PATCH] tests: Fix building unit tests. Unit tests shouldn't build in gem5's main function because they have thier own. --- src/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2