diff options
| author | bors <bors@rust-lang.org> | 2024-11-04 06:45:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-04 06:45:33 +0000 |
| commit | 56c6a2f9b1175b81835f6b3ed41bd6daffb3724e (patch) | |
| tree | 69e6ea07b399cb58c045631a07e26fc29c1810bf /compiler/rustc_codegen_gcc | |
| parent | 706eec8ce1127c9970c8586eeb47a2966e4ddff4 (diff) | |
| parent | 759e80d0192bf297d278bf202912d183ae76802c (diff) | |
| download | rust-56c6a2f9b1175b81835f6b3ed41bd6daffb3724e.tar.gz rust-56c6a2f9b1175b81835f6b3ed41bd6daffb3724e.zip | |
Auto merge of #132586 - workingjubilee:rollup-qrmn49a, r=workingjubilee
Rollup of 4 pull requests Successful merges: - #131222 (Generate correct symbols.o for sparc-unknown-none-elf) - #132423 (remove const-support for align_offset and is_aligned) - #132565 (Reduce dependence on the target name) - #132576 (remove attribute ids from hir stats (they're simply not needed)) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/consts.rs b/compiler/rustc_codegen_gcc/src/consts.rs index 660badb6a50..07c7a54de1c 100644 --- a/compiler/rustc_codegen_gcc/src/consts.rs +++ b/compiler/rustc_codegen_gcc/src/consts.rs @@ -146,7 +146,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> { // Wasm statics with custom link sections get special treatment as they // go into custom sections of the wasm executable. - if self.tcx.sess.opts.target_triple.tuple().starts_with("wasm32") { + if self.tcx.sess.target.is_like_wasm { if let Some(_section) = attrs.link_section { unimplemented!(); } |
