Skip to content
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

Redesign how linking in Rust works #9910

Closed
brson opened this issue Oct 17, 2013 · 5 comments
Closed

Redesign how linking in Rust works #9910

brson opened this issue Oct 17, 2013 · 5 comments
Labels
A-FFI Area: Foreign function interface (FFI) A-linkage Area: linking into static, shared libraries and binaries P-medium Medium priority
Milestone

Comments

@brson
Copy link
Contributor

brson commented Oct 17, 2013

Right now it's very ad-hoc, with users specifying link_args of unspecified format, tied to C compiler implementation, propogating linker arguments between crates. It's a mess. If we don't fix this we're going to end up tied to arbitrary, platform-specific C compiler semantics. Rust should have some sort of linker model baked in that just works for most common cases.

@brson
Copy link
Contributor Author

brson commented Oct 17, 2013

Nominating.

@brson
Copy link
Contributor Author

brson commented Oct 17, 2013

This is mostly about linking to native libraries.

@catamorphism
Copy link
Contributor

1.0, high

@Aatch
Copy link
Contributor

Aatch commented Oct 25, 2013

I would like to add my support for this. While the most common cases, like building simple executables or shared libraries, are reasonably well-handled by rustc right now, anything outside of that is hell to get right.

I'd like to have much more control over the compilation of rust code right now, as the uncommon cases are very difficult to get right. This is important for embedded environments and similar places.

@alexcrichton
Copy link
Member

Closed by #10528

flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2023
Don't lint `excessive_precision` on inf

Fixes rust-lang#9910

changelog: [`excessive_precision`]: No longer lints overflowing literals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-FFI Area: Foreign function interface (FFI) A-linkage Area: linking into static, shared libraries and binaries P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

4 participants