Closed coder0xff closed 6 months ago
Do you have a way of measuring the performance for -Os an -O2/-O3 builds?
Probably the best solution is to have build.rs pass flags to the compiler that will allow the compiler to still emit the warnings but treat them was warnings instead of errors. IDK off the top of my head how to do that. Do you know?
Addressed in PR #1952.
I'm trying to build for an esp32-series platform (os: espidf, arch: xtensa), and I get the following:
and more, which are of course treated as errors due to
-Wall
. Builds for this platform tend to be optimized for size (-Os), and I suspect that's why the compiler is rejecting the inlining. Commenting out the-Winline
inbuild.rs
is enough to work around it, but that doesn't seem like a PR that would get accepted. I'm interested in submitting a PR for this issue, but I'm not sure of the best way to approach it. What do you recommend?