SConstruct revision 2632
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28955SN/A
29955SN/A###################################################
30955SN/A#
31955SN/A# SCons top-level build description (SConstruct) file.
32955SN/A#
332632Sstever@eecs.umich.edu# While in this directory ('m5'), just type 'scons' to build the default
342632Sstever@eecs.umich.edu# configuration (see below), or type 'scons build/<CONFIG>/<binary>'
352632Sstever@eecs.umich.edu# to build some other configuration (e.g., 'build/ALPHA_FS/m5.opt' for
362632Sstever@eecs.umich.edu# the optimized full-system version).
37955SN/A#
382632Sstever@eecs.umich.edu# You can build M5 in a different directory as long as there is a
392632Sstever@eecs.umich.edu# 'build/<CONFIG>' somewhere along the target path.  The build system
402632Sstever@eecs.umich.edu# expdects that all configs under the same build directory are being
412632Sstever@eecs.umich.edu# built for the same host system.
422632Sstever@eecs.umich.edu#
432632Sstever@eecs.umich.edu# Examples:
442632Sstever@eecs.umich.edu#   These two commands are equivalent.  The '-u' option tells scons to
452632Sstever@eecs.umich.edu#   search up the directory tree for this SConstruct file.
462632Sstever@eecs.umich.edu#   % cd <path-to-src>/m5 ; scons build/ALPHA_FS/m5.debug
472632Sstever@eecs.umich.edu#   % cd <path-to-src>/m5/build/ALPHA_FS; scons -u m5.debug
482632Sstever@eecs.umich.edu#   These two commands are equivalent and demonstrate building in a
492632Sstever@eecs.umich.edu#   directory outside of the source tree.  The '-C' option tells scons
502632Sstever@eecs.umich.edu#   to chdir to the specified directory to find this SConstruct file.
512632Sstever@eecs.umich.edu#   % cd <path-to-src>/m5 ; scons /local/foo/build/ALPHA_FS/m5.debug
522632Sstever@eecs.umich.edu#   % cd /local/foo/build/ALPHA_FS; scons -C <path-to-src>/m5 m5.debug
532632Sstever@eecs.umich.edu#
542632Sstever@eecs.umich.edu# You can use 'scons -H' to print scons options.  If you're in this
552632Sstever@eecs.umich.edu# 'm5' directory (or use -u or -C to tell scons where to find this
562632Sstever@eecs.umich.edu# file), you can use 'scons -h' to print all the M5-specific build
572632Sstever@eecs.umich.edu# options as well.
58955SN/A#
59955SN/A###################################################
60955SN/A
61955SN/A# Python library imports
62955SN/Aimport sys
63955SN/Aimport os
64955SN/A
651858SN/A# Check for recent-enough Python and SCons versions
661858SN/AEnsurePythonVersion(2,3)
672632Sstever@eecs.umich.eduEnsureSConsVersion(0,96,91)
681852SN/A
69955SN/A# The absolute path to the current directory (where this file lives).
70955SN/AROOT = Dir('.').abspath
71955SN/A
722632Sstever@eecs.umich.edu# Paths to the M5 and external source trees.
732632Sstever@eecs.umich.eduSRCDIR = os.path.join(ROOT, 'src')
74955SN/A
751533SN/A# tell python where to find m5 python code
762632Sstever@eecs.umich.edusys.path.append(os.path.join(ROOT, 'src/python'))
771533SN/A
78955SN/A###################################################
79955SN/A#
802632Sstever@eecs.umich.edu# Figure out which configurations to set up based on the path(s) of
812632Sstever@eecs.umich.edu# the target(s).
82955SN/A#
83955SN/A###################################################
84955SN/A
85955SN/A# Find default configuration & binary.
862632Sstever@eecs.umich.eduDefault(os.environ.get('M5_DEFAULT_BINARY', 'build/ALPHA_SE/m5.debug'))
87955SN/A
882632Sstever@eecs.umich.edu# Ask SCons which directory it was invoked from.
89955SN/Alaunch_dir = GetLaunchDir()
90955SN/A
912632Sstever@eecs.umich.edu# Make targets relative to invocation directory
922632Sstever@eecs.umich.eduabs_targets = map(lambda x: os.path.normpath(os.path.join(launch_dir, str(x))),
932632Sstever@eecs.umich.edu                  BUILD_TARGETS)
942632Sstever@eecs.umich.edu
952632Sstever@eecs.umich.edu# helper function: find last occurrence of element in list
962632Sstever@eecs.umich.edudef rfind(l, elt, offs = -1):
972632Sstever@eecs.umich.edu    for i in range(len(l)+offs, 0, -1):
982632Sstever@eecs.umich.edu        if l[i] == elt:
992632Sstever@eecs.umich.edu            return i
1002632Sstever@eecs.umich.edu    raise ValueError, "element not found"
1012632Sstever@eecs.umich.edu
1022632Sstever@eecs.umich.edu# Each target must have 'build' in the interior of the path; the
1032632Sstever@eecs.umich.edu# directory below this will determine the build parameters.  For
1042632Sstever@eecs.umich.edu# example, for target 'foo/bar/build/ALPHA_SE/arch/alpha/blah.do' we
1052632Sstever@eecs.umich.edu# recognize that ALPHA_SE specifies the configuration because it
1062632Sstever@eecs.umich.edu# follow 'build' in the bulid path.
1072632Sstever@eecs.umich.edu
1082632Sstever@eecs.umich.edu# Generate a list of the unique configs that the collected targets
1092632Sstever@eecs.umich.edu# reference.
1102632Sstever@eecs.umich.edubuild_paths = []
1112632Sstever@eecs.umich.edufor t in abs_targets:
1122632Sstever@eecs.umich.edu    path_dirs = t.split('/')
1132632Sstever@eecs.umich.edu    try:
1142632Sstever@eecs.umich.edu        build_top = rfind(path_dirs, 'build', -2)
1152632Sstever@eecs.umich.edu    except:
1162632Sstever@eecs.umich.edu        print "Error: no non-leaf 'build' dir found on target path", t
1171858SN/A        Exit(1)
1182632Sstever@eecs.umich.edu    config_dir = os.path.join('/',*path_dirs[:build_top+2])
1192632Sstever@eecs.umich.edu    if config_dir not in build_paths:
1202632Sstever@eecs.umich.edu        build_paths.append(config_dir)
121955SN/A
122955SN/A###################################################
123955SN/A#
124955SN/A# Set up the default build environment.  This environment is copied
125955SN/A# and modified according to each selected configuration.
126955SN/A#
127955SN/A###################################################
128955SN/A
1291858SN/Aenv = Environment(ENV = os.environ,  # inherit user's environment vars
1301858SN/A                  ROOT = ROOT,
1312632Sstever@eecs.umich.edu                  SRCDIR = SRCDIR)
132955SN/A
1331858SN/Aenv.SConsignFile("sconsign")
1341105SN/A
1351869SN/A# I waffle on this setting... it does avoid a few painful but
1361869SN/A# unnecessary builds, but it also seems to make trivial builds take
1371869SN/A# noticeably longer.
1381869SN/Aif False:
1391869SN/A    env.TargetSignatures('content')
1401065SN/A
1412632Sstever@eecs.umich.edu# M5_PLY is used by isa_parser.py to find the PLY package.
1422632Sstever@eecs.umich.eduenv.Append(ENV = { 'M5_PLY' : Dir('ext/ply') })
143955SN/A
1441858SN/A# Set up default C++ compiler flags
1451858SN/Aenv.Append(CCFLAGS='-pipe')
1461858SN/Aenv.Append(CCFLAGS='-fno-strict-aliasing')
1471858SN/Aenv.Append(CCFLAGS=Split('-Wall -Wno-sign-compare -Werror -Wundef'))
1481851SN/Aif sys.platform == 'cygwin':
1491851SN/A    # cygwin has some header file issues...
1501858SN/A    env.Append(CCFLAGS=Split("-Wno-uninitialized"))
1512632Sstever@eecs.umich.eduenv.Append(CPPPATH=[Dir('ext/dnet')])
152955SN/A
1531858SN/A# Default libraries
1541858SN/Aenv.Append(LIBS=['z'])
1551858SN/A
1561858SN/A# Platform-specific configuration
1571858SN/Aconf = Configure(env)
1581858SN/A
1591858SN/A# Check for <fenv.h> (C99 FP environment control)
1601858SN/Ahave_fenv = conf.CheckHeader('fenv.h', '<>')
1611858SN/Aif not have_fenv:
1621858SN/A    print "Warning: Header file <fenv.h> not found."
1631858SN/A    print "         This host has no IEEE FP rounding mode control."
1641858SN/A
1651859SN/A# Check for mysql.
1661858SN/Amysql_config = WhereIs('mysql_config')
1671858SN/Ahave_mysql = mysql_config != None
1681858SN/A
1691859SN/A# Check MySQL version.
1701859SN/Aif have_mysql:
1711862SN/A    mysql_version = os.popen(mysql_config + ' --version').read()
1721862SN/A    mysql_version = mysql_version.split('.')
1731862SN/A    mysql_major = int(mysql_version[0])
1741862SN/A    mysql_minor = int(mysql_version[1])
1751859SN/A    # This version check is probably overly conservative, but it deals
1761859SN/A    # with the versions we have installed.
1771963SN/A    if mysql_major < 4 or (mysql_major == 4 and mysql_minor < 1):
1781963SN/A        print "Warning: MySQL v4.1 or newer required."
1791859SN/A        have_mysql = False
1801859SN/A
1811859SN/A# Set up mysql_config commands.
1821859SN/Aif have_mysql:
1831859SN/A    mysql_config_include = mysql_config + ' --include'
1841859SN/A    if os.system(mysql_config_include + ' > /dev/null') != 0:
1851859SN/A        # older mysql_config versions don't support --include, use
1861859SN/A        # --cflags instead
1871862SN/A        mysql_config_include = mysql_config + ' --cflags | sed s/\\\'//g'
1881859SN/A    # This seems to work in all versions
1891859SN/A    mysql_config_libs = mysql_config + ' --libs'
1901859SN/A
1911858SN/Aenv = conf.Finish()
1921858SN/A
1932139SN/A# Define the universe of supported ISAs
1942139SN/Aenv['ALL_ISA_LIST'] = ['alpha', 'sparc', 'mips']
1952139SN/A
1962155SN/A# Define the universe of supported CPU models
1972623SN/Aenv['ALL_CPU_LIST'] = ['AtomicSimpleCPU', 'TimingSimpleCPU',
1982623SN/A                       'FastCPU', 'FullCPU', 'AlphaFullCPU']
1992155SN/A
2001869SN/A# Sticky options get saved in the options file so they persist from
2011869SN/A# one invocation to the next (unless overridden, in which case the new
2021869SN/A# value becomes sticky).
2031869SN/Asticky_opts = Options(args=ARGUMENTS)
2041869SN/Asticky_opts.AddOptions(
2052139SN/A    EnumOption('TARGET_ISA', 'Target ISA', 'alpha', env['ALL_ISA_LIST']),
2061869SN/A    BoolOption('FULL_SYSTEM', 'Full-system support', False),
2072508SN/A    # There's a bug in scons 0.96.1 that causes ListOptions with list
2082508SN/A    # values (more than one value) not to be able to be restored from
2092508SN/A    # a saved option file.  If this causes trouble then upgrade to
2102508SN/A    # scons 0.96.90 or later.
2112508SN/A    ListOption('CPU_MODELS', 'CPU models', 'all', env['ALL_CPU_LIST']),
2121869SN/A    BoolOption('ALPHA_TLASER',
2131869SN/A               'Model Alpha TurboLaser platform (vs. Tsunami)', False),
2141869SN/A    BoolOption('NO_FAST_ALLOC', 'Disable fast object allocator', False),
2151869SN/A    BoolOption('EFENCE', 'Link with Electric Fence malloc debugger',
2161869SN/A               False),
2171869SN/A    BoolOption('SS_COMPATIBLE_FP',
2181869SN/A               'Make floating-point results compatible with SimpleScalar',
2191869SN/A               False),
2201965SN/A    BoolOption('USE_SSE2',
2211965SN/A               'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts',
2221965SN/A               False),
2231869SN/A    BoolOption('STATS_BINNING', 'Bin statistics by CPU mode', have_mysql),
2241869SN/A    BoolOption('USE_MYSQL', 'Use MySQL for stats output', have_mysql),
2251869SN/A    BoolOption('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv),
2261869SN/A    ('CC', 'C compiler', os.environ.get('CC', env['CC'])),
2271884SN/A    ('CXX', 'C++ compiler', os.environ.get('CXX', env['CXX'])),
2281884SN/A    BoolOption('BATCH', 'Use batch pool for build and tests', False),
2291884SN/A    ('BATCH_CMD', 'Batch pool submission command name', 'qdo')
2301869SN/A    )
2311858SN/A
2321869SN/A# Non-sticky options only apply to the current build.
2331869SN/Anonsticky_opts = Options(args=ARGUMENTS)
2341869SN/Anonsticky_opts.AddOptions(
2351869SN/A    BoolOption('update_ref', 'Update test reference outputs', False)
2361869SN/A    )
2371858SN/A
2381869SN/A# These options get exported to #defines in config/*.hh (see m5/SConscript).
2391869SN/Aenv.ExportOptions = ['FULL_SYSTEM', 'ALPHA_TLASER', 'USE_FENV', \
2401869SN/A                     'USE_MYSQL', 'NO_FAST_ALLOC', 'SS_COMPATIBLE_FP', \
2411869SN/A                     'STATS_BINNING']
2421869SN/A
2431869SN/A# Define a handy 'no-op' action
2441869SN/Adef no_action(target, source, env):
2451869SN/A    return 0
2461869SN/A
2471869SN/Aenv.NoAction = Action(no_action, None)
2481858SN/A
2491858SN/A# libelf build is described in its own SConscript file.
2501858SN/A# SConscript-global is the build in build/libelf shared among all
2511858SN/A# configs.
2522632Sstever@eecs.umich.eduenv.SConscript('src/libelf/SConscript-global', exports = 'env')
2531048SN/A
254955SN/A###################################################
255955SN/A#
2561869SN/A# Define a SCons builder for configuration flag headers.
2571869SN/A#
2581869SN/A###################################################
2591869SN/A
2601869SN/A# This function generates a config header file that #defines the
2611869SN/A# option symbol to the current option setting (0 or 1).  The source
2621869SN/A# operands are the name of the option and a Value node containing the
2631869SN/A# value of the option.
2641869SN/Adef build_config_file(target, source, env):
2651869SN/A    (option, value) = [s.get_contents() for s in source]
2661869SN/A    f = file(str(target[0]), 'w')
2671869SN/A    print >> f, '#define', option, value
2681869SN/A    f.close()
2691869SN/A    return None
2701869SN/A
2711869SN/A# Generate the message to be printed when building the config file.
2721869SN/Adef build_config_file_string(target, source, env):
2731869SN/A    (option, value) = [s.get_contents() for s in source]
2741869SN/A    return "Defining %s as %s in %s." % (option, value, target[0])
2751869SN/A
2761869SN/A# Combine the two functions into a scons Action object.
2771869SN/Aconfig_action = Action(build_config_file, build_config_file_string)
2781869SN/A
2791869SN/A# The emitter munges the source & target node lists to reflect what
2801869SN/A# we're really doing.
2811869SN/Adef config_emitter(target, source, env):
2821869SN/A    # extract option name from Builder arg
2831869SN/A    option = str(target[0])
2841869SN/A    # True target is config header file
2851869SN/A    target = os.path.join('config', option.lower() + '.hh')
2861869SN/A    # Force value to 0/1 even if it's a Python bool
2871869SN/A    val = int(eval(str(env[option])))
2881869SN/A    # Sources are option name & value (packaged in SCons Value nodes)
2891869SN/A    return ([target], [Value(option), Value(val)])
2901869SN/A
2911869SN/Aconfig_builder = Builder(emitter = config_emitter, action = config_action)
2921869SN/A
2931869SN/Aenv.Append(BUILDERS = { 'ConfigFile' : config_builder })
2941869SN/A
2951869SN/A###################################################
2961869SN/A#
297955SN/A# Define build environments for selected configurations.
298955SN/A#
299955SN/A###################################################
300955SN/A
3011858SN/A# rename base env
3021858SN/Abase_env = env
3031858SN/A
3042598SN/Ahelp_text = '''
3052598SN/AUsage: scons [scons options] [build options] [target(s)]
3062598SN/A
3072598SN/A'''
3082598SN/A
3092632Sstever@eecs.umich.edufor build_path in build_paths:
3102632Sstever@eecs.umich.edu    print "Building in", build_path
3112632Sstever@eecs.umich.edu    # build_dir is the tail component of build path, and is used to
3122632Sstever@eecs.umich.edu    # determine the build parameters (e.g., 'ALPHA_SE')
3132632Sstever@eecs.umich.edu    (build_root, build_dir) = os.path.split(build_path)
314955SN/A    # Make a copy of the default environment to use for this config.
3151858SN/A    env = base_env.Copy()
3162023SN/A
3172632Sstever@eecs.umich.edu    # Set env options according to the build directory config.
3182632Sstever@eecs.umich.edu    sticky_opts.files = []
3192632Sstever@eecs.umich.edu    # Options for $BUILD_ROOT/$BUILD_DIR are stored in
3202632Sstever@eecs.umich.edu    # $BUILD_ROOT/options/$BUILD_DIR so you can nuke
3212632Sstever@eecs.umich.edu    # $BUILD_ROOT/$BUILD_DIR without losing your options settings.
3222632Sstever@eecs.umich.edu    current_opts_file = os.path.join(build_root, 'options', build_dir)
3232632Sstever@eecs.umich.edu    if os.path.isfile(current_opts_file):
3242632Sstever@eecs.umich.edu        sticky_opts.files.append(current_opts_file)
3252632Sstever@eecs.umich.edu        print "Using saved options file %s" % current_opts_file
3262632Sstever@eecs.umich.edu    else:
3272632Sstever@eecs.umich.edu        # Build dir-specific options file doesn't exist.
3282023SN/A
3292632Sstever@eecs.umich.edu        # Make sure the directory is there so we can create it later
3302632Sstever@eecs.umich.edu        opt_dir = os.path.dirname(current_opts_file)
3311889SN/A        if not os.path.isdir(opt_dir):
3321889SN/A            os.mkdir(opt_dir)
3332632Sstever@eecs.umich.edu
3342632Sstever@eecs.umich.edu        # Get default build options from source tree.  Options are
3352632Sstever@eecs.umich.edu        # normally determined by name of $BUILD_DIR, but can be
3362632Sstever@eecs.umich.edu        # overriden by 'default=' arg on command line.
3372632Sstever@eecs.umich.edu        default_opts_file = os.path.join('build_opts',
3382632Sstever@eecs.umich.edu                                         ARGUMENTS.get('default', build_dir))
3392632Sstever@eecs.umich.edu        if os.path.isfile(default_opts_file):
3402632Sstever@eecs.umich.edu            sticky_opts.files.append(default_opts_file)
3412632Sstever@eecs.umich.edu            print "Options file %s not found,\n  using defaults in %s" \
3422632Sstever@eecs.umich.edu                  % (current_opts_file, default_opts_file)
3432632Sstever@eecs.umich.edu        else:
3442632Sstever@eecs.umich.edu            print "Error: cannot find options file %s or %s" \
3452632Sstever@eecs.umich.edu                  % (current_opts_file, default_opts_file)
3462632Sstever@eecs.umich.edu            Exit(1)
3471888SN/A
3481888SN/A    # Apply current option settings to env
3491869SN/A    sticky_opts.Update(env)
3501869SN/A    nonsticky_opts.Update(env)
3511858SN/A
3522598SN/A    help_text += "Sticky options for %s:\n" % build_dir \
3532598SN/A                 + sticky_opts.GenerateHelpText(env) \
3542598SN/A                 + "\nNon-sticky options for %s:\n" % build_dir \
3552598SN/A                 + nonsticky_opts.GenerateHelpText(env)
3562598SN/A
3571858SN/A    # Process option settings.
3581858SN/A
3591858SN/A    if not have_fenv and env['USE_FENV']:
3601858SN/A        print "Warning: <fenv.h> not available; " \
3611858SN/A              "forcing USE_FENV to False in", build_dir + "."
3621858SN/A        env['USE_FENV'] = False
3631858SN/A
3641858SN/A    if not env['USE_FENV']:
3651858SN/A        print "Warning: No IEEE FP rounding mode control in", build_dir + "."
3661871SN/A        print "         FP results may deviate slightly from other platforms."
3671858SN/A
3681858SN/A    if env['EFENCE']:
3691858SN/A        env.Append(LIBS=['efence'])
3701858SN/A
3711858SN/A    if env['USE_MYSQL']:
3721858SN/A        if not have_mysql:
3731858SN/A            print "Warning: MySQL not available; " \
3741858SN/A                  "forcing USE_MYSQL to False in", build_dir + "."
3751858SN/A            env['USE_MYSQL'] = False
3761858SN/A        else:
3771858SN/A            print "Compiling in", build_dir, "with MySQL support."
3781859SN/A            env.ParseConfig(mysql_config_libs)
3791859SN/A            env.ParseConfig(mysql_config_include)
3801869SN/A
3811888SN/A    # Save sticky option settings back to current options file
3822632Sstever@eecs.umich.edu    sticky_opts.Save(current_opts_file, env)
3831869SN/A
3841884SN/A    # Do this after we save setting back, or else we'll tack on an
3851884SN/A    # extra 'qdo' every time we run scons.
3861884SN/A    if env['BATCH']:
3871884SN/A        env['CC']  = env['BATCH_CMD'] + ' ' + env['CC']
3881884SN/A        env['CXX'] = env['BATCH_CMD'] + ' ' + env['CXX']
3891884SN/A
3901965SN/A    if env['USE_SSE2']:
3911965SN/A        env.Append(CCFLAGS='-msse2')
3921965SN/A
393955SN/A    # The m5/SConscript file sets up the build rules in 'env' according
3941869SN/A    # to the configured options.  It returns a list of environments,
3951869SN/A    # one for each variant build (debug, opt, etc.)
3962632Sstever@eecs.umich.edu    envList = SConscript('src/SConscript', build_dir = build_path,
3971869SN/A                         exports = 'env', duplicate = False)
3981869SN/A
3991869SN/A    # Set up the regression tests for each build.
4002632Sstever@eecs.umich.edu#    for e in envList:
4012632Sstever@eecs.umich.edu#        SConscript('m5-test/SConscript',
4022632Sstever@eecs.umich.edu#                   build_dir = os.path.join(build_dir, 'test', e.Label),
4032632Sstever@eecs.umich.edu#                   exports = { 'env' : e }, duplicate = False)
404955SN/A
4052598SN/AHelp(help_text)
4062598SN/A
407955SN/A###################################################
408955SN/A#
409955SN/A# Let SCons do its thing.  At this point SCons will use the defined
4101530SN/A# build environments to build the requested targets.
411955SN/A#
412955SN/A###################################################
413955SN/A
414