Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Profiling builds fail on Linux when linking via rustc #287
Before the Rust rewrite (#89) can begin in earnest, we have to fit
To that end, I decided to put Rust's
This got implemented and pushed into feature/first-rust-code branch. However, it fails to build on the CI server.
The problems are:
I couldn't find any mention of such problems on the Internet, and I'm not sure how to proceed. I think the only reason we do profiling builds at all is to collect test coverage; it's going to become much more complicated with two languages in the mix, so I might just stop doing that for the time of the transition. But if there's an actual solution to this, I'd like to know!
For whatever reason, I conflated two things: Rust being on the bottom of the call stack, and Rust owning the most long-lived objects in the program. This led me to try to rewrite
I realize now that these two things are separate. I can make Rust code a library and still put it almost at the bottom of the call stack.
I have a working example in feature/first-rust-code-take-2 branch, and will merge it into master soon. This issue is no longer relevant. Thanks for the insightful comment, @upsuper!