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

Expose target libdir information via print command #69608

Merged
merged 3 commits into from
Mar 9, 2020
Merged

Expose target libdir information via print command #69608

merged 3 commits into from
Mar 9, 2020

Conversation

o01eg
Copy link
Contributor

@o01eg o01eg commented Mar 1, 2020

With custom libdir it is required to have an access to library placement.

See RazrFalcon/cargo-bloat#51

@rust-highfive
Copy link
Collaborator

r? @petrochenkov

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 1, 2020
With custom libdir it is required to have an access to library
placement.
@petrochenkov
Copy link
Contributor

r? @ehuss

@rust-highfive rust-highfive assigned ehuss and unassigned petrochenkov Mar 1, 2020
@o01eg
Copy link
Contributor Author

o01eg commented Mar 1, 2020

For Gentoo with custom libdir it looks like:

$ rustc --print=target-libdir
/usr/lib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/lib

@ehuss
Copy link
Contributor

ehuss commented Mar 7, 2020

@o01eg
Copy link
Contributor Author

o01eg commented Mar 7, 2020

@ehuss Yes, I've updated it.

@ehuss
Copy link
Contributor

ehuss commented Mar 8, 2020

Thanks! Normally I would want a test, but I think it would be quite tricky to do it reliably. I'll also likely use this in Cargo, so it will get some coverage there.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 8, 2020

📌 Commit dbd1514 has been approved by ehuss

@bors
Copy link
Contributor

bors commented Mar 8, 2020

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 8, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Mar 8, 2020
…=ehuss

Expose target libdir information via print command

With custom libdir it is required to have an access to library placement.

See RazrFalcon/cargo-bloat#51
bors added a commit that referenced this pull request Mar 8, 2020
Rollup of 7 pull requests

Successful merges:

 - #69120 (Don't give invalid suggestion on desugared span.)
 - #69326 (mir-interpret: add method to read wide strings from Memory)
 - #69608 (Expose target libdir information via print command)
 - #69734 (Change DIBuilderCreateEnumerator signature to match LLVM 9)
 - #69800 (Compile address sanitizer test with debuginfo)
 - #69807 (Cleanup E0391 explanation)
 - #69820 (clean up E0392 explanation)

Failed merges:

r? @ghost
@bors bors merged commit 5e9888e into rust-lang:master Mar 9, 2020
@o01eg o01eg deleted the expose-target-libdir-print branch March 9, 2020 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants