Skip to content

Make -Z gen-crate-map the default when compiling staticlib #11080

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

Closed
alexcrichton opened this issue Dec 19, 2013 · 1 comment
Closed

Make -Z gen-crate-map the default when compiling staticlib #11080

alexcrichton opened this issue Dec 19, 2013 · 1 comment

Comments

@alexcrichton
Copy link
Member

Not having a toplevel crate map when compiling a staticlib is almost useless because anything that uses the crate map will not work. Might as well just generate a toplevel crate map like we do for executables because a staticlib is an end produce in the same sense.

@alexcrichton
Copy link
Member Author

Hm, now I remember why I didn't do this before. It's tricky in that when you have multiple output formats not all of them will want the toplevel crate map. Perhaps this could use the same trick as metadata in that there's a separate object file for it, but I think that's overkill. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant