mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-12 16:21:45 +00:00
Feat(CI): Add an option to use LTO instead of building with it by default
This commit is contained in:
parent
54954fbaf2
commit
2c470be852
1 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,7 @@ STRIP=""
|
|||
SKIP_DOWNLOAD=""
|
||||
SKIP_EXTRACT=""
|
||||
USE_CCACHE=""
|
||||
USE_LTO=""
|
||||
KEEP=""
|
||||
UNITY_BUILD=""
|
||||
VS_VERSION=""
|
||||
|
@ -152,6 +153,9 @@ while [ $# -gt 0 ]; do
|
|||
T )
|
||||
USE_CLANG_TIDY=true ;;
|
||||
|
||||
L )
|
||||
USE_LTO=true ;;
|
||||
|
||||
h )
|
||||
cat <<EOF
|
||||
Usage: $0 [-cdehkpuvVi]
|
||||
|
@ -542,7 +546,9 @@ if ! [ -z $USE_CCACHE ]; then
|
|||
fi
|
||||
|
||||
# turn on LTO by default
|
||||
if ! [ -z "USE_LTO" ]; then
|
||||
add_cmake_opts "-DOPENMW_LTO_BUILD=True"
|
||||
fi
|
||||
|
||||
if ! [ -z "$USE_WERROR" ]; then
|
||||
add_cmake_opts "-DOPENMW_MSVC_WERROR=ON"
|
||||
|
|
Loading…
Reference in a new issue