3 # Copyright (c) 2004-2005 The Regents of The University of Michigan
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
9 # notice, this list of conditions and the following disclaimer;
10 # redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution;
13 # neither the name of the copyright holders nor the names of its
14 # contributors may be used to endorse or promote products derived from
15 # this software without specific prior written permission.
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # Authors: Nathan Binkert
37 from os.path import basename, exists, isdir, isfile, join as joinpath
41 # This file defines how to build a particular configuration of M5
42 # based on variable settings in the 'env' build environment.
46 # Children need to see the environment
49 build_env = dict([(opt, env[opt]) for opt in env.ExportOptions])
52 """return a sorted copy of '_list'"""
53 if isinstance(_list, list):
60 class PySourceFile(object):
61 def __init__(self, package, source):
62 filename = str(source)
63 pyname = basename(filename)
64 assert pyname.endswith('.py')
66 path = package.split('.')
68 if name != '__init__':
70 modpath = '.'.join(modpath)
72 arcpath = package.split('.') + [ pyname + 'c' ]
73 arcname = joinpath(*arcpath)
77 self.srcpath = source.srcnode().abspath
78 self.package = package
79 self.modpath = modpath
80 self.arcname = arcname
81 self.filename = filename
82 self.compiled = File(filename + 'c')
84 ########################################################################
85 # Code for adding source files of various types
89 '''Add a C/C++ source file to the build'''
90 if not isinstance(source, SCons.Node.FS.File):
93 cc_sources.append(source)
96 def PySource(package, source):
97 '''Add a python source file to the named package'''
98 if not isinstance(source, SCons.Node.FS.File):
101 source = PySourceFile(package, source)
102 py_sources.append(source)
104 sim_objects_fixed = False
105 sim_object_modfiles = set()
106 def SimObject(source):
107 '''Add a SimObject python file as a python source object and add
108 it to a list of sim object modules'''
110 if sim_objects_fixed:
111 raise AttributeError, "Too late to call SimObject now."
113 if not isinstance(source, SCons.Node.FS.File):
114 source = File(source)
116 PySource('m5.objects', source)
117 modfile = basename(str(source))
118 assert modfile.endswith('.py')
119 modname = modfile[:-3]
120 sim_object_modfiles.add(modname)
123 def SwigSource(package, source):
124 '''Add a swig file to build'''
125 if not isinstance(source, SCons.Node.FS.File):
126 source = File(source)
128 swig_sources.append(val)
130 # Children should have access
136 ########################################################################
142 def TraceFlag(name, desc=''):
143 if name in all_flags:
144 raise AttributeError, "Flag %s already specified" % name
145 flag = (name, (), desc)
146 trace_flags.append(flag)
149 def CompoundFlag(name, flags, desc=''):
150 if name in all_flags:
151 raise AttributeError, "Flag %s already specified" % name
153 compound = tuple(flags)
154 for flag in compound:
155 if flag not in all_flags:
156 raise AttributeError, "Trace flag %s not found" % flag
158 raise AttributeError, \
159 "Compound flag can't point to another compound flag"
161 flag = (name, compound, desc)
162 trace_flags.append(flag)
163 all_flags[name] = compound
166 Export('CompoundFlag')
168 ########################################################################
170 # Set some compiler variables
173 # Include file paths are rooted in this directory. SCons will
174 # automatically expand '.' to refer to both the source directory and
175 # the corresponding build directory to pick up generated include
177 env.Append(CPPPATH=Dir('.'))
179 # Add a flag defining what THE_ISA should be for all compilation
180 env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
182 ########################################################################
184 # Walk the tree and execute all SConscripts in subdirectories
187 for base_dir in base_dir_list:
188 here = Dir('.').srcnode().abspath
189 for root, dirs, files in os.walk(base_dir, topdown=True):
191 # we don't want to recurse back into this SConscript
194 if 'SConscript' in files:
195 build_dir = joinpath(env['BUILDDIR'], root[len(base_dir) + 1:])
196 SConscript(joinpath(root, 'SConscript'), build_dir=build_dir)
198 for opt in env.ExportOptions:
201 ########################################################################
203 # Prevent any SimObjects from being added after this point, they
204 # should all have been added in the SConscripts above
206 class DictImporter(object):
207 '''This importer takes a dictionary of arbitrary module names that
208 map to arbitrary filenames.'''
209 def __init__(self, modules):
210 self.modules = modules
211 self.installed = set()
218 for module in self.installed:
219 del sys.modules[module]
220 self.installed = set()
222 def find_module(self, fullname, path):
223 if fullname == '__scons':
226 if fullname == 'm5.objects':
229 if fullname.startswith('m5.internal'):
232 if fullname in self.modules and exists(self.modules[fullname]):
237 def load_module(self, fullname):
238 mod = imp.new_module(fullname)
239 sys.modules[fullname] = mod
240 self.installed.add(fullname)
242 mod.__loader__ = self
243 if fullname == 'm5.objects':
244 mod.__path__ = fullname.split('.')
247 if fullname == '__scons':
248 mod.__dict__['m5_build_env'] = build_env
251 srcfile = self.modules[fullname]
252 if basename(srcfile) == '__init__.py':
253 mod.__path__ = fullname.split('.')
254 mod.__file__ = srcfile
256 exec file(srcfile, 'r') in mod.__dict__
261 for source in py_sources:
262 py_modules[source.modpath] = source.srcpath
264 # install the python importer so we can grab stuff from the source
265 # tree itself. We can't have SimObjects added after this point or
266 # else we won't know about them for the rest of the stuff.
267 sim_objects_fixed = True
268 importer = DictImporter(py_modules)
269 sys.meta_path[0:0] = [ importer ]
273 # import all sim objects so we can populate the all_objects list
274 # make sure that we're working with a list, then let's sort it
275 sim_objects = list(sim_object_modfiles)
277 for simobj in sim_objects:
278 exec('from m5.objects import %s' % simobj)
280 # we need to unload all of the currently imported modules so that they
281 # will be re-imported the next time the sconscript is run
283 sys.meta_path.remove(importer)
285 sim_objects = m5.SimObject.allClasses
286 all_enums = m5.params.allEnums
289 for name,obj in sim_objects.iteritems():
290 for param in obj._params.local.values():
291 if not hasattr(param, 'swig_decl'):
293 pname = param.ptype_str
294 if pname not in all_params:
295 all_params[pname] = param
297 ########################################################################
299 # calculate extra dependencies
301 module_depends = ["m5", "m5.SimObject", "m5.params"]
302 depends = [ File(py_modules[dep]) for dep in module_depends ]
304 ########################################################################
306 # Commands for the basic automatically generated python files
309 # Generate Python file containing a dict specifying the current
311 def makeDefinesPyFile(target, source, env):
312 f = file(str(target[0]), 'w')
313 print >>f, "m5_build_env = ", source[0]
316 # Generate python file containing info about the M5 source code
317 def makeInfoPyFile(target, source, env):
318 f = file(str(target[0]), 'w')
320 data = ''.join(file(src.srcnode().abspath, 'r').xreadlines())
321 print >>f, "%s = %s" % (src, repr(data))
324 # Generate the __init__.py file for m5.objects
325 def makeObjectsInitFile(target, source, env):
326 f = file(str(target[0]), 'w')
327 print >>f, 'from params import *'
328 print >>f, 'from m5.SimObject import *'
329 for module in source:
330 print >>f, 'from %s import *' % module.get_contents()
333 # Generate a file with all of the compile options in it
334 env.Command('python/m5/defines.py', Value(build_env), makeDefinesPyFile)
335 PySource('m5', 'python/m5/defines.py')
337 # Generate a file that wraps the basic top level files
338 env.Command('python/m5/info.py',
339 [ '#/AUTHORS', '#/LICENSE', '#/README', '#/RELEASE_NOTES' ],
341 PySource('m5', 'python/m5/info.py')
343 # Generate an __init__.py file for the objects package
344 env.Command('python/m5/objects/__init__.py',
345 [ Value(o) for o in sort_list(sim_object_modfiles) ],
347 PySource('m5.objects', 'python/m5/objects/__init__.py')
349 ########################################################################
351 # Create all of the SimObject param headers and enum headers
354 def createSimObjectParam(target, source, env):
355 assert len(target) == 1 and len(source) == 1
357 hh_file = file(target[0].abspath, 'w')
358 name = str(source[0].get_contents())
359 obj = sim_objects[name]
361 print >>hh_file, obj.cxx_decl()
363 def createSwigParam(target, source, env):
364 assert len(target) == 1 and len(source) == 1
366 i_file = file(target[0].abspath, 'w')
367 name = str(source[0].get_contents())
368 param = all_params[name]
370 for line in param.swig_decl():
373 def createEnumStrings(target, source, env):
374 assert len(target) == 1 and len(source) == 1
376 cc_file = file(target[0].abspath, 'w')
377 name = str(source[0].get_contents())
378 obj = all_enums[name]
380 print >>cc_file, obj.cxx_def()
383 def createEnumParam(target, source, env):
384 assert len(target) == 1 and len(source) == 1
386 hh_file = file(target[0].abspath, 'w')
387 name = str(source[0].get_contents())
388 obj = all_enums[name]
390 print >>hh_file, obj.cxx_decl()
392 # Generate all of the SimObject param struct header files
394 for name,simobj in sim_objects.iteritems():
395 extra_deps = [ File(py_modules[simobj.__module__]) ]
397 hh_file = File('params/%s.hh' % name)
398 params_hh_files.append(hh_file)
399 env.Command(hh_file, Value(name), createSimObjectParam)
400 env.Depends(hh_file, depends + extra_deps)
402 # Generate any parameter header files needed
404 for name,param in all_params.iteritems():
405 if isinstance(param, m5.params.VectorParamDesc):
410 i_file = File('params/%s_%s.i' % (name, ext))
411 params_i_files.append(i_file)
412 env.Command(i_file, Value(name), createSwigParam)
413 env.Depends(i_file, depends)
415 # Generate all enum header files
416 for name,enum in all_enums.iteritems():
417 extra_deps = [ File(py_modules[enum.__module__]) ]
419 cc_file = File('enums/%s.cc' % name)
420 env.Command(cc_file, Value(name), createEnumStrings)
421 env.Depends(cc_file, depends + extra_deps)
424 hh_file = File('enums/%s.hh' % name)
425 env.Command(hh_file, Value(name), createEnumParam)
426 env.Depends(hh_file, depends + extra_deps)
428 # Build the big monolithic swigged params module (wraps all SimObject
429 # param structs and enum structs)
430 def buildParams(target, source, env):
431 names = [ s.get_contents() for s in source ]
432 objs = [ sim_objects[name] for name in names ]
433 out = file(target[0].abspath, 'w')
443 if str(obj) != 'SimObject':
444 order_obj(obj.__bases__[0])
446 ordered_objs.append(obj)
457 if pd not in pd_seen:
461 for obj in ordered_objs:
462 params = obj._params.local.values()
465 if issubclass(ptype, m5.params.Enum):
466 if ptype not in enums:
468 pds = param.swig_predecls()
469 if isinstance(pds, (list, tuple)):
474 print >>out, '%module params'
477 for obj in ordered_objs:
478 print >>out, '#include "params/%s.hh"' % obj
487 print >>out, '%%include "enums/%s.hh"' % enum.__name__
490 for obj in ordered_objs:
491 if obj.swig_objdecls:
492 for decl in obj.swig_objdecls:
497 base = obj.get_base()
499 code += '// stop swig from creating/wrapping default ctor/dtor\n'
500 code += '%%nodefault %s;\n' % obj.cxx_class
501 code += 'class %s ' % obj.cxx_class
503 code += ': public %s' % base
506 klass = obj.cxx_class;
507 if hasattr(obj, 'cxx_namespace'):
508 new_code = 'namespace %s {\n' % obj.cxx_namespace
512 klass = '%s::%s' % (obj.cxx_namespace, klass)
516 print >>out, '%%include "src/sim/sim_object_params.hh"' % obj
517 for obj in ordered_objs:
518 print >>out, '%%include "params/%s.hh"' % obj
520 params_file = File('params/params.i')
521 names = sort_list(sim_objects.keys())
522 env.Command(params_file, [ Value(v) for v in names ], buildParams)
523 env.Depends(params_file, params_hh_files + params_i_files + depends)
524 SwigSource('m5.objects', params_file)
526 # Build all swig modules
528 for source,package in swig_sources:
529 filename = str(source)
530 assert filename.endswith('.i')
532 base = '.'.join(filename.split('.')[:-1])
533 module = basename(base)
534 cc_file = base + '_wrap.cc'
535 py_file = base + '.py'
537 env.Command([cc_file, py_file], source,
538 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
539 '-o ${TARGETS[0]} $SOURCES')
540 env.Depends(py_file, source)
541 env.Depends(cc_file, source)
543 swig_modules.append(Value(module))
545 PySource(package, py_file)
547 # Generate the main swig init file
548 def makeSwigInit(target, source, env):
549 f = file(str(target[0]), 'w')
550 print >>f, 'extern "C" {'
551 for module in source:
552 print >>f, ' void init_%s();' % module.get_contents()
554 print >>f, 'void init_swig() {'
555 for module in source:
556 print >>f, ' init_%s();' % module.get_contents()
560 env.Command('swig/init.cc', swig_modules, makeSwigInit)
561 Source('swig/init.cc')
563 # Generate traceflags.py
564 def traceFlagsPy(target, source, env):
565 assert(len(target) == 1)
567 f = file(str(target[0]), 'w')
571 val = eval(s.get_contents())
574 print >>f, 'baseFlags = ['
575 for flag, compound, desc in allFlags:
577 print >>f, " '%s'," % flag
581 print >>f, 'compoundFlags = ['
583 for flag, compound, desc in allFlags:
585 print >>f, " '%s'," % flag
589 print >>f, "allFlags = frozenset(baseFlags + compoundFlags)"
592 print >>f, 'compoundFlagMap = {'
593 all = tuple([flag for flag,compound,desc in allFlags if not compound])
594 print >>f, " 'All' : %s," % (all, )
595 for flag, compound, desc in allFlags:
597 print >>f, " '%s' : %s," % (flag, compound)
601 print >>f, 'flagDescriptions = {'
602 print >>f, " 'All' : 'All flags',"
603 for flag, compound, desc in allFlags:
604 print >>f, " '%s' : '%s'," % (flag, desc)
609 def traceFlagsCC(target, source, env):
610 assert(len(target) == 1)
612 f = file(str(target[0]), 'w')
616 val = eval(s.get_contents())
622 * DO NOT EDIT THIS FILE! Automatically generated
625 #include "base/traceflags.hh"
627 using namespace Trace;
629 const char *Trace::flagStrings[] =
632 # The string array is used by SimpleEnumParam to map the strings
633 # provided by the user to enum values.
634 for flag, compound, desc in allFlags:
636 print >>f, ' "%s",' % flag
639 for flag, compound, desc in allFlags:
641 print >>f, ' "%s",' % flag
645 print >>f, 'const int Trace::numFlagStrings = %d;' % (len(allFlags) + 1)
649 # Now define the individual compound flag arrays. There is an array
650 # for each compound flag listing the component base flags.
652 all = tuple([flag for flag,compound,desc in allFlags if not compound])
653 print >>f, 'static const Flags AllMap[] = {'
654 for flag, compound, desc in allFlags:
656 print >>f, " %s," % flag
660 for flag, compound, desc in allFlags:
663 print >>f, 'static const Flags %sMap[] = {' % flag
664 for flag in compound:
665 print >>f, " %s," % flag
666 print >>f, " (Flags)-1"
671 # Finally the compoundFlags[] array maps the compound flags
672 # to their individual arrays/
674 print >>f, 'const Flags *Trace::compoundFlags[] ='
676 print >>f, ' AllMap,'
677 for flag, compound, desc in allFlags:
679 print >>f, ' %sMap,' % flag
685 def traceFlagsHH(target, source, env):
686 assert(len(target) == 1)
688 f = file(str(target[0]), 'w')
692 val = eval(s.get_contents())
695 # file header boilerplate
698 * DO NOT EDIT THIS FILE!
700 * Automatically generated from traceflags.py
703 #ifndef __BASE_TRACE_FLAGS_HH__
704 #define __BASE_TRACE_FLAGS_HH__
710 # Generate the enum. Base flags come first, then compound flags.
712 for flag, compound, desc in allFlags:
714 print >>f, ' %s = %d,' % (flag, idx)
718 print >>f, ' NumFlags = %d,' % idx
720 # put a comment in here to separate base from compound flags
722 // The remaining enum values are *not* valid indices for Trace::flags.
723 // They are "compound" flags, which correspond to sets of base
724 // flags, and are used by changeFlag.'''
726 print >>f, ' All = %d,' % idx
728 for flag, compound, desc in allFlags:
730 print >>f, ' %s = %d,' % (flag, idx)
733 numCompoundFlags = idx - numBaseFlags
734 print >>f, ' NumCompoundFlags = %d' % numCompoundFlags
736 # trailer boilerplate
740 // Array of strings for SimpleEnumParam
741 extern const char *flagStrings[];
742 extern const int numFlagStrings;
744 // Array of arraay pointers: for each compound flag, gives the list of
745 // base flags to set. Inidividual flag arrays are terminated by -1.
746 extern const Flags *compoundFlags[];
748 /* namespace Trace */ }
750 #endif // __BASE_TRACE_FLAGS_HH__
755 flags = [ Value(f) for f in trace_flags ]
756 env.Command('base/traceflags.py', flags, traceFlagsPy)
757 PySource('m5', 'base/traceflags.py')
759 env.Command('base/traceflags.hh', flags, traceFlagsHH)
760 env.Command('base/traceflags.cc', flags, traceFlagsCC)
761 Source('base/traceflags.cc')
763 # Generate program_info.cc
764 def programInfo(target, source, env):
765 def gen_file(target, rev, node, date):
766 pi_stats = file(target, 'w')
767 print >>pi_stats, 'const char *hgRev = "%s:%s";' % (rev, node)
768 print >>pi_stats, 'const char *hgDate = "%s";' % date
771 target = str(target[0])
772 scons_dir = str(source[0].get_contents())
774 import mercurial.demandimport, mercurial.hg, mercurial.ui
775 import mercurial.util, mercurial.node
776 if not exists(scons_dir) or not isdir(scons_dir) or \
777 not exists(joinpath(scons_dir, ".hg")):
779 repo = mercurial.hg.repository(mercurial.ui.ui(), scons_dir)
780 rev = mercurial.node.nullrev + repo.changelog.count()
781 changenode = repo.changelog.node(rev)
782 changes = repo.changelog.read(changenode)
783 date = mercurial.util.datestr(changes[2])
785 gen_file(target, rev, mercurial.node.hex(changenode), date)
787 mercurial.demandimport.disable()
789 gen_file(target, "Unknown", "Unknown", "Unknown")
793 gen_file(target, "Unknown", "Unknown", "Unknown")
794 mercurial.demandimport.disable()
796 env.Command('base/program_info.cc',
797 Value(str(SCons.Node.FS.default_fs.SConstruct_dir)),
801 def compilePyFile(target, source, env):
802 '''Action function to compile a .py into a .pyc'''
803 py_compile.compile(str(source[0]), str(target[0]))
805 def buildPyZip(target, source, env):
806 '''Action function to build the zip archive. Uses the
807 PyZipFile module included in the standard Python library.'''
811 compname = str(s.compiled)
812 assert compname not in py_compiled
813 py_compiled[compname] = s
815 zf = zipfile.ZipFile(str(target[0]), 'w')
818 arcname = py_compiled[zipname].arcname
819 zf.write(zipname, arcname)
824 for source in py_sources:
825 env.Command(source.compiled, source.source, compilePyFile)
826 py_compiled.append(source.compiled)
828 # make the zipfile depend on the archive name so that the archive
829 # is rebuilt if the name changes
830 py_zip_depends.append(Value(source.arcname))
832 # Add the zip file target to the environment.
833 m5zip = File('m5py.zip')
834 env.Command(m5zip, py_compiled, buildPyZip)
835 env.Depends(m5zip, py_zip_depends)
837 ########################################################################
839 # Define binaries. Each different build type (debug, opt, etc.) gets
840 # a slightly different build environment.
843 # List of constructed environments to pass back to SConstruct
846 # This function adds the specified sources to the given build
847 # environment, and returns a list of all the corresponding SCons
848 # Object nodes (including an extra one for date.cc). We explicitly
849 # add the Object nodes so we can set up special dependencies for
851 def make_objs(sources, env):
852 objs = [env.Object(s) for s in sources]
854 # make date.cc depend on all other objects so it always gets
855 # recompiled whenever anything else does
856 date_obj = env.Object('base/date.cc')
858 # Make the generation of program_info.cc dependend on all
859 # the other cc files and the compiling of program_info.cc
860 # dependent on all the objects but program_info.o
861 pinfo_obj = env.Object('base/program_info.cc')
862 env.Depends('base/program_info.cc', sources)
863 env.Depends(date_obj, objs)
864 env.Depends(pinfo_obj, objs)
865 objs.extend([date_obj,pinfo_obj])
868 # Function to create a new build environment as clone of current
869 # environment 'env' with modified object suffix and optional stripped
870 # binary. Additional keyword arguments are appended to corresponding
871 # build environment vars.
872 def makeEnv(label, objsfx, strip = False, **kwargs):
873 newEnv = env.Copy(OBJSUFFIX=objsfx)
875 newEnv.Append(**kwargs)
876 exe = 'm5.' + label # final executable
877 bin = exe + '.bin' # executable w/o appended Python zip archive
878 newEnv.Program(bin, make_objs(cc_sources, newEnv))
880 stripped_bin = bin + '.stripped'
881 if sys.platform == 'sunos5':
882 cmd = 'cp $SOURCE $TARGET; strip $TARGET'
884 cmd = 'strip $SOURCE -o $TARGET'
885 newEnv.Command(stripped_bin, bin, cmd)
887 targets = newEnv.Concat(exe, [bin, 'm5py.zip'])
888 newEnv.M5Binary = targets[0]
889 envList.append(newEnv)
894 if sys.platform == 'sunos5':
895 ccflags['debug'] = '-gstabs+'
897 ccflags['debug'] = '-ggdb3'
898 ccflags['opt'] = '-g -O3'
899 ccflags['fast'] = '-O3'
900 ccflags['prof'] = '-O3 -g -pg'
902 ccflags['debug'] = '-g0'
903 ccflags['opt'] = '-g -O'
904 ccflags['fast'] = '-fast'
905 ccflags['prof'] = '-fast -g -pg'
907 ccflags['debug'] = '-g -O0'
908 ccflags['opt'] = '-g -O'
909 ccflags['fast'] = '-fast'
910 ccflags['prof'] = '-fast -g -pg'
912 print 'Unknown compiler, please fix compiler options'
915 makeEnv('debug', '.do',
916 CCFLAGS = Split(ccflags['debug']),
917 CPPDEFINES = ['DEBUG', 'TRACING_ON=1'])
921 CCFLAGS = Split(ccflags['opt']),
922 CPPDEFINES = ['TRACING_ON=1'])
925 makeEnv('fast', '.fo', strip = True,
926 CCFLAGS = Split(ccflags['fast']),
927 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'])
930 makeEnv('prof', '.po',
931 CCFLAGS = Split(ccflags['prof']),
932 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],