SConscript (9396:0c0ec9d87746) SConscript (9419:54d5c0e5852a)
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

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

1001 # the optimization to the ldflags as LTO defers the optimization
1002 # to link time
1003 for target in ['opt', 'fast', 'prof', 'perf']:
1004 ccflags[target] += ['-O3']
1005 ldflags[target] += ['-O3']
1006
1007 ccflags['fast'] += env['LTO_CCFLAGS']
1008 ldflags['fast'] += env['LTO_LDFLAGS']
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

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

1001 # the optimization to the ldflags as LTO defers the optimization
1002 # to link time
1003 for target in ['opt', 'fast', 'prof', 'perf']:
1004 ccflags[target] += ['-O3']
1005 ldflags[target] += ['-O3']
1006
1007 ccflags['fast'] += env['LTO_CCFLAGS']
1008 ldflags['fast'] += env['LTO_LDFLAGS']
1009
1010elif env['SUNCC']:
1011 ccflags['debug'] += ['-g0']
1012 ccflags['opt'] += ['-O']
1013 for target in ['fast', 'prof', 'perf']:
1014 ccflags[target] += ['-fast']
1015elif env['ICC']:
1016 ccflags['debug'] += ['-g', '-O0']
1017 ccflags['opt'] += ['-O']
1018 for target in ['fast', 'prof', 'perf']:
1019 ccflags[target] += ['-fast']
1020elif env['CLANG']:
1021 ccflags['debug'] += ['-g', '-O0']
1022 # opt, fast, prof and perf all share the same cc flags
1023 for target in ['opt', 'fast', 'prof', 'perf']:
1024 ccflags[target] += ['-O3']
1025else:
1026 print 'Unknown compiler, please fix compiler options'
1027 Exit(1)

--- 61 unchanged lines hidden ---
1009elif env['CLANG']:
1010 ccflags['debug'] += ['-g', '-O0']
1011 # opt, fast, prof and perf all share the same cc flags
1012 for target in ['opt', 'fast', 'prof', 'perf']:
1013 ccflags[target] += ['-O3']
1014else:
1015 print 'Unknown compiler, please fix compiler options'
1016 Exit(1)

--- 61 unchanged lines hidden ---