Feat(CI): Add an option to use LTO instead of building with it by default

pull/656/head
Dave Corley 7 months ago
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…
Cancel
Save