set LTO_NONE=y/n according to _lto_mode choice (#372)

fixes #371
This commit is contained in:
Thorben
2021-12-03 16:02:16 +00:00
committed by GitHub
parent 0c9c028dae
commit b9a1d46527

View File

@@ -591,9 +591,15 @@ _tkg_srcprep() {
if [ "$_lto_mode" = "full" ]; then
_enable LTO_CLANG_FULL
_disable LTO_CLANG_THIN
_disable LTO_NONE
elif [ "$_lto_mode" = "thin" ]; then
_disable LTO_CLANG_FULL
_enable LTO_CLANG_THIN
_disable LTO_NONE
else
_disable LTO_CLANG_FULL
_disable LTO_CLANG_THIN
_enable LTO_NONE
fi
fi
# Void uses LibreSSL