Add | add lto=yes to nuitka_build

just incase
This commit is contained in:
shenjack 2023-10-19 00:16:57 +08:00
parent eedaa3e370
commit b8b511dd27
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -55,6 +55,10 @@ if __name__ == '__main__':
compiler.output_path = Path(out_path) compiler.output_path = Path(out_path)
sys.argv.remove('--output') sys.argv.remove('--output')
sys.argv.remove(out_path) sys.argv.remove(out_path)
if '--lto=yes' in sys.argv:
compiler.use_lto = True
sys.argv.remove('--lto=yes')
# 检测 --no-pyglet-opt 参数 # 检测 --no-pyglet-opt 参数
pyglet_optimizations = True pyglet_optimizations = True