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

Add support for debug builds (-g flag) #439

Closed
gsingh93 opened this Issue Aug 25, 2014 · 4 comments

Comments

Projects
None yet
5 participants
@gsingh93

gsingh93 commented Aug 25, 2014

I think there should be a way to optionally pass the -g flag to rustc. My specific use case is that I need a binary with debug information for use with kcov.

@steveklabnik

This comment has been minimized.

Member

steveklabnik commented Aug 25, 2014

The intention is that normal builds will include -g, and release builds will not, so this won't be needed specifically. That said, rustc's debugging support is kinda broken for certain things at the moment, so this is temporarily disabled until then.

@alan-andrade

This comment has been minimized.

alan-andrade commented Aug 28, 2014

That's good to know, I needed the same "feature".

@alexcrichton

This comment has been minimized.

Member

alexcrichton commented Sep 4, 2014

This is now implemented! See the profile section of http://crates.io/manifest.html for more information.

I should also note that this is now the default for regular/test profiles, you'll just have to opt-in to debuginfo for release builds.

@pratz

This comment has been minimized.

pratz commented Nov 16, 2014

This is awesome
+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment