FBT: Use LTO for firmware dfu --nobuild
Some checks failed
Build / build (f7) (push) Failing after 0s
Lint / lint (push) Failing after 0s
Webhook / webhook (push) Failing after 0s

This commit is contained in:
WillyJL
2026-02-28 23:41:19 +01:00
parent 1c1fe6d74e
commit c98fa215da

View File

@@ -216,6 +216,14 @@ sources.extend(
)
)
# Link-Time Optimization for firmware dfu only, we are desperately out of flash space
if ENV["COMPACT"]:
fwenv.Append(
CCFLAGS=[
"-flto",
],
)
# Debug
# print(fwenv.Dump())