Skip to content

Revert "trans: Be a little more picky about dllimport" #27304

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

Merged
merged 1 commit into from
Jul 27, 2015

Conversation

alexcrichton
Copy link
Member

This reverts commit a0efd3a.

This commit caused a lot of unintended breakage for many Cargo builds. The problem is that Cargo compiles build scripts with -C prefer-dynamic, so the standard library is always dynamically linked and hence any imports need to be marked with dllimport. Dependencies of build scripts, however, were compiled as rlibs and did not have their imports tagged with dllimport, so build scripts would fail to link.

While known that this situation would break, it was unknown that it was a common scenario in the wild. As a result I'm just reverting these heuristics for now.

@alexcrichton
Copy link
Member Author

r? @brson

@rust-highfive rust-highfive assigned brson and unassigned Aatch Jul 26, 2015
@rust-highfive
Copy link
Contributor

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@brson
Copy link
Contributor

brson commented Jul 27, 2015

@bors r+ p=1

@bors
Copy link
Collaborator

bors commented Jul 27, 2015

📌 Commit 316e1b0 has been approved by brson

bors added a commit that referenced this pull request Jul 27, 2015
This reverts commit a0efd3a.

This commit caused a lot of unintended breakage for many Cargo builds. The problem is that Cargo compiles build scripts with `-C prefer-dynamic`, so the standard library is always dynamically linked and hence any imports need to be marked with `dllimport`. Dependencies of build scripts, however, were compiled as rlibs and did not have their imports tagged with `dllimport`, so build scripts would fail to link.

While known that this situation would break, it was unknown that it was a common scenario in the wild. As a result I'm just reverting these heuristics for now.
@bors
Copy link
Collaborator

bors commented Jul 27, 2015

⌛ Testing commit 316e1b0 with merge bbda6f9...

@bors bors merged commit 316e1b0 into rust-lang:master Jul 27, 2015
@alexcrichton alexcrichton deleted the revert-picky-dllimport branch August 17, 2015 19:51
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

Successfully merging this pull request may close these issues.

5 participants