mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30: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
|
if [ -n "$has_lto" ]; then
|
||||||
# Use LTO only if we see LTO exists and is requested
|
# Use LTO only if we see LTO exists and is requested
|
||||||
flags="$flags -flto"
|
flags="$flags -flto"
|
||||||
|
ldflags="$ldflags -fwhole-program"
|
||||||
features="$features lto"
|
features="$features lto"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user