Uh oh!
There was an error while loading. Please reload this page.
rustc_llvm: remove stale references - #46280
Conversation
There was a problem hiding this comment.
This line shouldn't be removed as I believe it's required for msvc
There was a problem hiding this comment.
Are you sure? cc::Build::compile prints to stdout a cargo directive that makes the link work, which I think is how this works. https://docs.rs/cc/1.0.3/src/cc/lib.rs.html#781
There was a problem hiding this comment.
Can you help me understand how hoedown, profiler-rt, binaryen_wrapper, and others work? AFAICT, none of them have #[link(...)] attributes.
There was a problem hiding this comment.
Sure yes. This annotation is primarily needed for MSVC where attributes like dllimport/dllexport are applied and need to be correct for everything to link successfully. The #[link] annotation here says "these symbols are included statically" which means that they're all exported with dllexport and from the rustc_llvm dynamic library. Otherwise the rustc_trans dynamic library would not be able to access these symbols.
The other libraries we have just happen to not run into this situation where they cross dynamic library boundaries.
There was a problem hiding this comment.
Thanks! I've included your explanation in the code.
There was a problem hiding this comment.
Isn't this comment still largely applicable with some editing?
There was a problem hiding this comment.
Sort of, but there's no longer anything here to anchor it to, and the relevant code (in build.rs) is rather self explanatory.
There was a problem hiding this comment.
Ok yeah on rereading let's leave out
...that were removed in 77c3bfa.
The documentation states: "The name output should be the name of the library." and this is already done in more recently-added callers.
alexcrichton
commented
Nov 29, 2017
@bors: r+ |
bors
commented
Nov 29, 2017
📌 Commit 94d02b8 has been approved by |
bors
commented
Nov 29, 2017
⌛ Testing commit 94d02b8 with merge 24cbcaedb1f02525771187f5d944f23daa365e56... |
bors
commented
Nov 29, 2017
💔 Test failed - status-travis |
tamird
commented
Nov 29, 2017
Something to do with travis using an older xcode? Doesn't seem related to this PR. |
kennytm
commented
Nov 29, 2017
@bors retry — travis-ci/travis-ci#8821 |
rustc_llvm: remove stale references ...that were removed in 77c3bfa. r? @alexcrichton
rustc_llvm: remove stale references ...that were removed in 77c3bfa. r? @alexcrichton
rustc_llvm: remove stale references ...that were removed in 77c3bfa. r? @alexcrichton
rustc_llvm: remove stale references ...that were removed in 77c3bfa. r? @alexcrichton
rustc_llvm: remove stale references ...that were removed in 77c3bfa. r? @alexcrichton
shepmaster
commented
Dec 1, 2017
@bors retry |
...that were removed in 77c3bfa.
r? @alexcrichton