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.
This commit is contained in:
parent
049c24e164
commit
45437fb8c8
1 changed files with 1 additions and 1 deletions
|
@ -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!();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue