-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake compile
does not build with the "debug" profile
#471
Comments
Hmmm interesting, Does |
No, I get the same issue. I'll try to put together an MWE to share |
Ah, actually, I can repro this is oxi-test:
With this diff
|
What's your |
I've been really enjoying using this rb-sys alongside magnus to write an extension in Rust, thank you!
When developing, I want to build my extension using the "debug" profile for faster compilation times. I tried this from the docs:
However, the crate is still built in release mode. Looking at the generated
Makefile
,RB_SYS_CARGO_PROFILE
is still always "release". From poking around in the code I think this is becauseRbSys::Mkmf::Config#rubygems_invoked?
returns true due toSOURCE_DATE_EPOCH
being set. I'm not 100% but I guess this is being set byrake
. I'm usingRbSys::ExtensionTask
and doing the compilation byrake compile
.The text was updated successfully, but these errors were encountered: