diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-10-21 13:19:46 +0200 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2021-11-15 10:21:02 +0100 |
| commit | e35b7bbdf8bf9939be5bcbaef781b95e8c93b6e1 (patch) | |
| tree | 7c8df211c6c273d8ca05ccff2904cc2e1e02241b /compiler/rustc_session/src | |
| parent | c4884bbec7ae6ba06211a2769271b8db38c8284b (diff) | |
| download | rust-e35b7bbdf8bf9939be5bcbaef781b95e8c93b6e1.tar.gz rust-e35b7bbdf8bf9939be5bcbaef781b95e8c93b6e1.zip | |
Stabilize -Z strip as -C strip
Leave -Z strip available temporarily as an alias, to avoid breaking cargo until cargo transitions to using -C strip. (If the user passes both, the -C version wins.)
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 3afe0947339..5e6bbe03918 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -37,7 +37,7 @@ use std::iter::{self, FromIterator}; use std::path::{Path, PathBuf}; use std::str::{self, FromStr}; -/// The different settings that the `-Z strip` flag can have. +/// The different settings that the `-C strip` flag can have. #[derive(Clone, Copy, PartialEq, Hash, Debug)] pub enum Strip { /// Do not strip at all. diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 8b9ec5028d1..3f279a045f1 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1015,6 +1015,8 @@ options! { "use soft float ABI (*eabihf targets only) (default: no)"), split_debuginfo: Option<SplitDebuginfo> = (None, parse_split_debuginfo, [TRACKED], "how to handle split-debuginfo, a platform-specific option"), + strip: Strip = (Strip::None, parse_strip, [UNTRACKED], + "tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)"), target_cpu: Option<String> = (None, parse_opt_string, [TRACKED], "select target processor (`rustc --print target-cpus` for details)"), target_feature: String = (String::new(), parse_target_feature, [TRACKED], |
