SConscript (11342:a4d19e7cd26d) SConscript (11370:af870035ab6b)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1237 unchanged lines hidden (view full) ---

1246 if match and match.group(1) in target_types:
1247 return match.group(1)
1248 return 'all'
1249
1250needed_envs = [identifyTarget(target) for target in BUILD_TARGETS]
1251if 'all' in needed_envs:
1252 needed_envs += target_types
1253
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1237 unchanged lines hidden (view full) ---

1246 if match and match.group(1) in target_types:
1247 return match.group(1)
1248 return 'all'
1249
1250needed_envs = [identifyTarget(target) for target in BUILD_TARGETS]
1251if 'all' in needed_envs:
1252 needed_envs += target_types
1253
1254gem5_root = Dir('.').up().up().abspath
1255def makeEnvirons(target, source, env):
1256 # cause any later Source() calls to be fatal, as a diagnostic.
1257 Source.done()
1258
1259 envList = []
1260
1261 # Debug binary
1262 if 'debug' in needed_envs:

--- 32 unchanged lines hidden (view full) ---

1295 envList.append(
1296 makeEnv(env, 'perf', '.gpo',
1297 CCFLAGS = Split(ccflags['perf']),
1298 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
1299 LINKFLAGS = Split(ldflags['perf'])))
1300
1301 # Set up the regression tests for each build.
1302 for e in envList:
1254def makeEnvirons(target, source, env):
1255 # cause any later Source() calls to be fatal, as a diagnostic.
1256 Source.done()
1257
1258 envList = []
1259
1260 # Debug binary
1261 if 'debug' in needed_envs:

--- 32 unchanged lines hidden (view full) ---

1294 envList.append(
1295 makeEnv(env, 'perf', '.gpo',
1296 CCFLAGS = Split(ccflags['perf']),
1297 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
1298 LINKFLAGS = Split(ldflags['perf'])))
1299
1300 # Set up the regression tests for each build.
1301 for e in envList:
1303 SConscript(os.path.join(gem5_root, 'tests', 'SConscript'),
1302 SConscript(os.path.join(env.root.abspath, 'tests', 'SConscript'),
1304 variant_dir = variantd('tests', e.Label),
1305 exports = { 'env' : e }, duplicate = False)
1306
1307# The MakeEnvirons Builder defers the full dependency collection until
1308# after processing the ISA definition (due to dynamically generated
1309# source files). Add this dependency to all targets so they will wait
1310# until the environments are completely set up. Otherwise, a second
1311# process (e.g. -j2 or higher) will try to compile the requested target,

--- 16 unchanged lines hidden ---
1303 variant_dir = variantd('tests', e.Label),
1304 exports = { 'env' : e }, duplicate = False)
1305
1306# The MakeEnvirons Builder defers the full dependency collection until
1307# after processing the ISA definition (due to dynamically generated
1308# source files). Add this dependency to all targets so they will wait
1309# until the environments are completely set up. Otherwise, a second
1310# process (e.g. -j2 or higher) will try to compile the requested target,

--- 16 unchanged lines hidden ---