mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 12:26:32 +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_DOWNLOAD=""
|
||||||
SKIP_EXTRACT=""
|
SKIP_EXTRACT=""
|
||||||
USE_CCACHE=""
|
USE_CCACHE=""
|
||||||
|
USE_LTO=""
|
||||||
KEEP=""
|
KEEP=""
|
||||||
UNITY_BUILD=""
|
UNITY_BUILD=""
|
||||||
VS_VERSION=""
|
VS_VERSION=""
|
||||||
|
@ -152,6 +153,9 @@ while [ $# -gt 0 ]; do
|
||||||
T )
|
T )
|
||||||
USE_CLANG_TIDY=true ;;
|
USE_CLANG_TIDY=true ;;
|
||||||
|
|
||||||
|
L )
|
||||||
|
USE_LTO=true ;;
|
||||||
|
|
||||||
h )
|
h )
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Usage: $0 [-cdehkpuvVi]
|
Usage: $0 [-cdehkpuvVi]
|
||||||
|
@ -542,7 +546,9 @@ if ! [ -z $USE_CCACHE ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# turn on LTO by default
|
# turn on LTO by default
|
||||||
|
if ! [ -z "USE_LTO" ]; then
|
||||||
add_cmake_opts "-DOPENMW_LTO_BUILD=True"
|
add_cmake_opts "-DOPENMW_LTO_BUILD=True"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -z "$USE_WERROR" ]; then
|
if ! [ -z "$USE_WERROR" ]; then
|
||||||
add_cmake_opts "-DOPENMW_MSVC_WERROR=ON"
|
add_cmake_opts "-DOPENMW_MSVC_WERROR=ON"
|
||||||
|
|
Loading…
Reference in a new issue