Auto merge of #118417 - anforowicz:default-hidden-visibility, r=TaKO8Ki
Add unstable `-Zdefault-hidden-visibility` cmdline flag for `rustc`. The new flag has been described in the Major Change Proposal at https://github.com/rust-lang/compiler-team/issues/656
This commit is contained in:
commit
9d49eb76c4
10 changed files with 66 additions and 8 deletions
|
@ -2094,7 +2094,11 @@ pub struct TargetOptions {
|
|||
pub no_builtins: bool,
|
||||
|
||||
/// The default visibility for symbols in this target should be "hidden"
|
||||
/// rather than "default"
|
||||
/// rather than "default".
|
||||
///
|
||||
/// This value typically shouldn't be accessed directly, but through
|
||||
/// the `rustc_session::Session::default_hidden_visibility` method, which
|
||||
/// allows `rustc` users to override this setting using cmdline flags.
|
||||
pub default_hidden_visibility: bool,
|
||||
|
||||
/// Whether a .debug_gdb_scripts section will be added to the output object file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue