Skip to content

Fix tests when linking with lld #2466

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 2 commits into from
Apr 29, 2020
Merged

Conversation

jtgeibel
Copy link
Member

This bumps a few dependencies (in particular ctor) to fix linking with lld. Before this fix, tests would fail because the background jobs were not being registered correctly.

I'm seeing very promising results with lld locally. Here are my times for a clean incremental build (after touch src/lib.rs) when running time cargo test --no-run:

Ubuntu 20.04 default linker

real    0m54.108s
user    4m57.944s
sys     0m50.454s

With RUSTFLAGS="-C link-arg=-fuse-ld=lld"

real    0m20.015s
user    0m59.601s
sys     0m14.471s

Our production and CI are on an Ubuntu 16.04 stack, so I'm not sure what it would take to make this configuration the default.

r? @JohnTitor

```
Updating ghost v0.1.0 -> v0.1.1
Updating inventory v0.1.3 -> v0.1.6
Updating inventory-impl v0.1.3 -> v0.1.6
```
@JohnTitor
Copy link
Member

👍
@bors r+

@bors
Copy link
Contributor

bors commented Apr 29, 2020

📌 Commit dfcf28b has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Apr 29, 2020

⌛ Testing commit dfcf28b with merge 90e925c...

@bors
Copy link
Contributor

bors commented Apr 29, 2020

☀️ Test successful - checks-travis
Approved by: JohnTitor
Pushing 90e925c to master...

@bors bors merged commit 90e925c into rust-lang:master Apr 29, 2020
@jtgeibel jtgeibel deleted the update/inventory branch April 30, 2020 03:52
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