From b8b511dd27d97df0d2350ab086a8c0f7d06820fe Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 19 Oct 2023 00:16:57 +0800 Subject: [PATCH] Add | add lto=yes to nuitka_build just incase --- nuitka_build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nuitka_build.py b/nuitka_build.py index c30defa..b8f9a21 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -55,6 +55,10 @@ if __name__ == '__main__': compiler.output_path = Path(out_path) sys.argv.remove('--output') sys.argv.remove(out_path) + + if '--lto=yes' in sys.argv: + compiler.use_lto = True + sys.argv.remove('--lto=yes') # 检测 --no-pyglet-opt 参数 pyglet_optimizations = True