flipperzero-rs / flipperzero

Rust on the Flipper Zero
MIT License
459 stars 31 forks source link

tools: Add `fap-lld` wrapping linker that generates `.fast.rel` sections #99

Closed str4d closed 10 months ago

str4d commented 10 months ago

Closes flipperzero-rs/flipperzero#89.

str4d commented 10 months ago

In local testing on my Macbook Air M1, this reduces cargo test runtimes from 13s to 11.7s.

str4d commented 10 months ago

From the error in the example build logs, it looks like we can't use whatever objcopy is in PATH, and will probably need to just use llvm-objcopy and tell people to rustup component add llvm-tools to get FastFAP support.

str4d commented 10 months ago

Rebased on main to fix merge conflicts caused by #97 being merged (which I had been holding off merging, because dependabot will perform these kinds of rebases automatically on its own PRs).

str4d commented 10 months ago

Force-pushed to use deterministic filenames for the .fast.rel section data.