SConscript (3584:8c3cdb2c001c) | SConscript (3619:b3dab7606e0e) |
---|---|
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 --- 302 unchanged lines hidden (view full) --- 311# with stabs though 312if sys.platform == 'sunos5': 313 debug_flag = '-gstabs+' 314else: 315 debug_flag = '-ggdb3' 316 317makeEnv('debug', '.do', 318 CCFLAGS = Split('%s -O0' % debug_flag), | 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 --- 302 unchanged lines hidden (view full) --- 311# with stabs though 312if sys.platform == 'sunos5': 313 debug_flag = '-gstabs+' 314else: 315 debug_flag = '-ggdb3' 316 317makeEnv('debug', '.do', 318 CCFLAGS = Split('%s -O0' % debug_flag), |
319 CPPDEFINES = 'DEBUG') | 319 CPPDEFINES = ['DEBUG', 'TRACING_ON=1']) |
320 321# Optimized binary 322makeEnv('opt', '.o', | 320 321# Optimized binary 322makeEnv('opt', '.o', |
323 CCFLAGS = Split('-g -O3')) | 323 CCFLAGS = Split('-g -O3'), 324 CPPDEFINES = ['TRACING_ON=1']) |
324 325# "Fast" binary 326makeEnv('fast', '.fo', strip = True, 327 CCFLAGS = Split('-O3'), | 325 326# "Fast" binary 327makeEnv('fast', '.fo', strip = True, 328 CCFLAGS = Split('-O3'), |
328 CPPDEFINES = 'NDEBUG') | 329 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0']) |
329 330# Profiled binary 331makeEnv('prof', '.po', 332 CCFLAGS = Split('-O3 -g -pg'), 333 LINKFLAGS = '-pg') 334 335Return('envList') | 330 331# Profiled binary 332makeEnv('prof', '.po', 333 CCFLAGS = Split('-O3 -g -pg'), 334 LINKFLAGS = '-pg') 335 336Return('envList') |