scons: Revert "Enable LTO for opt, perf and prof builds."
This reverts https://gem5-review.googlesource.com/c/public/gem5/+/40815 Change-Id: I7dbd2b555570c90c98f38c7c02eb052571f7b6bd Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/44886 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -1435,8 +1435,11 @@ if env['GCC']:
|
||||
# the optimization to the ldflags as LTO defers the optimization
|
||||
# to link time
|
||||
for target in ['opt', 'fast', 'prof', 'perf']:
|
||||
ccflags[target] += ['-O3'] + env['LTO_CCFLAGS']
|
||||
ldflags[target] += ['-O3'] + env['LTO_LDFLAGS']
|
||||
ccflags[target] += ['-O3']
|
||||
ldflags[target] += ['-O3']
|
||||
|
||||
ccflags['fast'] += env['LTO_CCFLAGS']
|
||||
ldflags['fast'] += env['LTO_LDFLAGS']
|
||||
elif env['CLANG']:
|
||||
ccflags['debug'] += ['-g', '-O0']
|
||||
# opt, fast, prof and perf all share the same cc flags
|
||||
|
||||
Reference in New Issue
Block a user