| 1 |
# Do a best effort at producing builds with frame pointers, which |
| 2 |
# are useful for low-overhead, cross-platform, and accurate enough |
| 3 |
# stack unwinding by profilers such as perf. |
| 4 |
# |
| 5 |
# This does not affect downstream Zopfli users. |
| 6 |
# |
| 7 |
# Related reads: |
| 8 |
# - <https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html> |
| 9 |
# - <https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer> |
| 10 |
# - <https://pagure.io/fedora-rust/rust2rpm/pull-request/237> |
| 11 |
[build] |
| 12 |
rustflags = ["-C", "force-frame-pointers=true"] |