Deleted Added
sdiff udiff text old ( 3970:d54945bab95d ) new ( 3980:9bcb2a2e9bb8 )
full compact
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

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

306 stripped_bin = bin + '.stripped'
307 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET')
308 bin = stripped_bin
309 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip'])
310 newEnv.M5Binary = targets[0]
311 envList.append(newEnv)
312
313# Debug binary
314# Solaris seems to have some issue with DWARF2 debugging information, it's ok
315# with stabs though
316if sys.platform == 'sunos5':
317 debug_flag = '-gstabs+'
318else:
319 debug_flag = '-ggdb3'
320
321makeEnv('debug', '.do',
322 CCFLAGS = Split('%s -O0' % debug_flag),
323 CPPDEFINES = ['DEBUG', 'TRACING_ON=1'])
324
325# Optimized binary
326makeEnv('opt', '.o',
327 CCFLAGS = Split('-g -O3'),
328 CPPDEFINES = ['TRACING_ON=1'])
329
330# "Fast" binary
331makeEnv('fast', '.fo', strip = True,
332 CCFLAGS = Split('-O3'),
333 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'])
334
335# Profiled binary
336makeEnv('prof', '.po',
337 CCFLAGS = Split('-O3 -g -pg'),
338 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
339 LINKFLAGS = '-pg')
340
341Return('envList')