mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 07:45:39 +00:00
Enable LTO Release builds on Windows by default
This commit is contained in:
parent
ebc34ea251
commit
6e3c04195c
1 changed files with 3 additions and 0 deletions
|
@ -530,6 +530,9 @@ if ! [ -z $USE_CCACHE ]; then
|
|||
add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
||||
fi
|
||||
|
||||
# turn on LTO by default
|
||||
add_cmake_opts "-DOPENMW_LTO_BUILD=True"
|
||||
|
||||
if ! [ -z "$USE_WERROR" ]; then
|
||||
add_cmake_opts "-DOPENMW_MSVC_WERROR=ON"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue