mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r21661) -Codechange: use -fwhole-program when linking in LTO mode so compiler can do more optimisations
This commit is contained in:
parent
83d7634122
commit
14d8ef9add
@ -1296,6 +1296,7 @@ make_compiler_cflags() {
|
||||
if [ -n "$has_lto" ]; then
|
||||
# Use LTO only if we see LTO exists and is requested
|
||||
flags="$flags -flto"
|
||||
ldflags="$ldflags -fwhole-program"
|
||||
features="$features lto"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user