Uh oh!
There was an error while loading. Please reload this page.
Add options to --extern flag. - #67074
Conversation
ehuss
commented
Dec 6, 2019
cc @alexcrichton |
eddyb
commented
Dec 6, 2019
alexcrichton
commented
Dec 6, 2019
👍 Looks great to me! That Cargo patch is also 💯 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Dec 6, 2019
ehuss
commented
Dec 7, 2019
Thanks for taking a look @petrochenkov ! |
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Dec 8, 2019
r=me with the remaining nit addressed and non-compiletest commits squashed. |
ehuss
commented
Dec 9, 2019
@bors r=petrochenkov |
bors
commented
Dec 9, 2019
📌 Commit 60d4e20 has been approved by |
bors
commented
Dec 9, 2019
Add options to --extern flag. This changes the `--extern` flag so that it can take a series of options that changes its behavior. The general syntax is `[opts ':'] name ['=' path]` where `opts` is a comma separated list of options. Two options are supported, `priv` which replaces `--extern-private` and `noprelude` which avoids adding the crate to the extern prelude. ```text --extern priv:mylib=/path/to/libmylib.rlib --extern noprelude:alloc=/path/to/liballoc.rlib ``` `noprelude` is to be used by Cargo's build-std feature in order to use `--extern` to reference standard library crates. This also includes a second commit which adds the `aux-crate` directive to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on #54020, and can be used in the future to replace and simplify some of the Makefile tests.
bors
commented
Dec 9, 2019
💔 Test failed - checks-azure |
rust-highfive
commented
Dec 9, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
petrochenkov
commented
Dec 9, 2019
I guess you know better whether it's spurious or not. |
ehuss
commented
Dec 9, 2019
@bors retry |
bors
commented
Dec 10, 2019
⌛ Testing commit 60d4e20 with merge e574b81e5a06188176f2ec1696ad484f9dfccdf3... |
rust-highfive
commented
Dec 10, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
commented
Dec 10, 2019
💔 Test failed - checks-azure |
ehuss
commented
Dec 10, 2019
@bors retry |
Add options to --extern flag. This changes the `--extern` flag so that it can take a series of options that changes its behavior. The general syntax is `[opts ':'] name ['=' path]` where `opts` is a comma separated list of options. Two options are supported, `priv` which replaces `--extern-private` and `noprelude` which avoids adding the crate to the extern prelude. ```text --extern priv:mylib=/path/to/libmylib.rlib --extern noprelude:alloc=/path/to/liballoc.rlib ``` `noprelude` is to be used by Cargo's build-std feature in order to use `--extern` to reference standard library crates. This also includes a second commit which adds the `aux-crate` directive to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on rust-lang#54020, and can be used in the future to replace and simplify some of the Makefile tests.
Rollup of 6 pull requests Successful merges: - #66881 (Optimize Ord trait implementation for bool) - #67015 (Fix constant propagation for scalar pairs) - #67074 (Add options to --extern flag.) - #67164 (Ensure that panicking in constants eventually errors) - #67174 (Remove `checked_add` in `Layout::repeat`) - #67205 (Make `publish_toolstate.sh` executable) Failed merges: r? @ghost
Switch build-std to use --extern Switch `build-std` to use `--extern` flags instead of `--sysroot`. This is mostly a revert of #7421. It uses the new extern flag options introduced in rust-lang/rust#67074. It avoids modifying the extern prelude which was the source of the problem of rust-lang/wg-cargo-std-aware#40. Closesrust-lang/wg-cargo-std-aware#49 Reopens rust-lang/wg-cargo-std-aware#31
This changes the
--externflag so that it can take a series of options that changes its behavior. The general syntax is[opts ':'] name ['=' path]whereoptsis a comma separated list of options. Two options are supported,privwhich replaces--extern-privateandnopreludewhich avoids adding the crate to the extern prelude.nopreludeis to be used by Cargo's build-std feature in order to use--externto reference standard library crates.This also includes a second commit which adds the
aux-cratedirective to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on #54020, and can be used in the future to replace and simplify some of the Makefile tests.