mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-23 12:38:52 -04: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
@ -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…
x
Reference in New Issue
Block a user