mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 05:41:59 +00:00
[build] Enable link-time optimizations
They seem to make a small difference. I guess QF is currently well enough organized that LTO just doesn't have enough to work with, though I suspect that will change when I make more use of the ECS.
This commit is contained in:
parent
d7258f09bd
commit
25b6e0369d
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ AC_MSG_CHECKING(for optimization)
|
|||
if test "x$optimize" = xyes -a "x$leave_cflags_alone" != "xyes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
BUILD_TYPE="$BUILD_TYPE Optimize"
|
||||
QF_CC_OPTION(-flto=auto)
|
||||
if test "x$GCC" = xyes; then
|
||||
saved_cflags="$CFLAGS"
|
||||
dnl CFLAGS=""
|
||||
|
|
Loading…
Reference in a new issue