diff options
| author | bors <bors@rust-lang.org> | 2023-12-14 09:16:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-14 09:16:15 +0000 |
| commit | 9d49eb76c47a139ef71da4ab56aa9aeca5f24913 (patch) | |
| tree | e3b338c0d0a863ffe99b05e38897ddbd66c8f925 /compiler/rustc_codegen_gcc | |
| parent | 1a8afa0e748008708950e1a9ff62c598e2cfb3ea (diff) | |
| parent | 981c4e3ce6f3d89f681fbb0de753d03425c6a209 (diff) | |
| download | rust-9d49eb76c47a139ef71da4ab56aa9aeca5f24913.tar.gz rust-9d49eb76c47a139ef71da4ab56aa9aeca5f24913.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/allocator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/allocator.rs b/compiler/rustc_codegen_gcc/src/allocator.rs index c8c098e2973..7c7044830f3 100644 --- a/compiler/rustc_codegen_gcc/src/allocator.rs +++ b/compiler/rustc_codegen_gcc/src/allocator.rs @@ -90,7 +90,7 @@ fn create_wrapper_function( .collect(); let func = context.new_function(None, FunctionType::Exported, output.unwrap_or(void), &args, from_name, false); - if tcx.sess.target.options.default_hidden_visibility { + if tcx.sess.default_hidden_visibility() { #[cfg(feature="master")] func.add_attribute(FnAttribute::Visibility(gccjit::Visibility::Hidden)); } |
