diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-11-03 20:08:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-03 20:08:14 -0800 |
| commit | 7155c65d68abe83cb62e2b8ae478a259702ec6f0 (patch) | |
| tree | 3d03c0bd877d5d7b759445521e8bed8d39d186f7 /compiler/rustc_codegen_gcc | |
| parent | 3313e760d03c05d027e7720f159a805b5b21c5a0 (diff) | |
| parent | 775aad80fc4de54dbf3d029ce9aca4371ea48c09 (diff) | |
| download | rust-7155c65d68abe83cb62e2b8ae478a259702ec6f0.tar.gz rust-7155c65d68abe83cb62e2b8ae478a259702ec6f0.zip | |
Rollup merge of #132565 - bjorn3:less_target_name_dependence, r=workingjubilee
Reduce dependence on the target name The target name can be anything with custom target specs. Matching on fields inside the target spec is much more robust than matching on the target name. Also remove the unused is_builtin target spec field.
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!(); } |
