mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-03-29 10:49:54 +00:00
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
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:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user