diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2020-04-30 10:53:16 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2020-05-01 09:05:13 -0700 |
| commit | e1832fa4e4700a5f8935ac3e88f7688a15e17df0 (patch) | |
| tree | 83a9e5e259160bdfeef7c5f3cba30860144a6017 /src/bootstrap | |
| parent | eece58a8e35c444afba6fa34873bc0244e32cd29 (diff) | |
| download | rust-e1832fa4e4700a5f8935ac3e88f7688a15e17df0.tar.gz rust-e1832fa4e4700a5f8935ac3e88f7688a15e17df0.zip | |
Rename `bitcode-in-rlib` option to `embed-bitcode`
This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/compile.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index 06ab0a9c310..f50ddf8c967 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -232,8 +232,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: Interned<String>, stage: u32, ca } } - // By default, rustc uses `-Cbitcode-in-rlib=yes`, and Cargo overrides that - // with `-Cbitcode-in-rlib=no` for non-LTO builds. However, libstd must be + // By default, rustc uses `-Cembed-bitcode=yes`, and Cargo overrides that + // with `-Cembed-bitcode=no` for non-LTO builds. However, libstd must be // built with bitcode so that the produced rlibs can be used for both LTO // builds (which use bitcode) and non-LTO builds (which use object code). // So we override the override here! @@ -241,7 +241,7 @@ pub fn std_cargo(builder: &Builder<'_>, target: Interned<String>, stage: u32, ca // But we don't bother for the stage 0 compiler because it's never used // with LTO. if stage >= 1 { - cargo.rustflag("-Cbitcode-in-rlib=yes"); + cargo.rustflag("-Cembed-bitcode=yes"); } } |
