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'] |
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 --- |