From ceca248e7cbd107b2fdd28951967b995f9bf26d6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 6 Oct 2023 11:00:12 +0300 Subject: [PATCH] aedi: enable link-time optimization for quakespasm-exp --- aedi/target/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aedi/target/main.py b/aedi/target/main.py index 0e4ff183..f119f636 100644 --- a/aedi/target/main.py +++ b/aedi/target/main.py @@ -488,7 +488,10 @@ class QuakespasmExpTarget(CMakeMainTarget): if state.xcode: opts['QUAKE_BUILD_ENGINE_PAK'] = 'OFF' - elif state.architecture() != machine(): - opts['MakeQuakePak_DIR'] = state.native_build_path + else: + opts['QUAKE_LTO'] = 'ON' + + if state.architecture() != machine(): + opts['MakeQuakePak_DIR'] = state.native_build_path super().configure(state)