feat:lto_level

This commit is contained in:
dichgrem
2025-10-06 21:21:37 +08:00
parent 6c84db976d
commit ba5b6e35f8
2 changed files with 10 additions and 2 deletions

View File

@@ -25,6 +25,14 @@ on:
- kernelsu
- kernelsu-next
- none
lto_solution:
description: "Select the level of lto"
required: false
default: "thin"
type: choice
options:
- thin
- full
kernel_name:
description: "Custom kernel name (optional)"
required: false
@@ -211,7 +219,7 @@ jobs:
export KERNEL_DEFCONFIG=config_defconfig
# 默认 LTO 为 thin
export LTO="${LTO:-thin}"
export LTO="${{ inputs.lto_solution || 'thin' }}"
echo "LTO mode: $LTO"
# 工具链路径

View File

@@ -16,7 +16,7 @@
## Features
- Use clang-r547379
- Enable ThinLTO to build
- Enable ThinLTO/FullLTO to build
- Enable Root support : kernelsu/SukiSU/kernelsu-next
- Enable Susfs support : You can build susfs into kernel
- Enable Anykernel3 support : Packaged as a zip package of anykernel3