Use more robust checks in rustc for wasm
This commit is contained in:
parent
d2a3c24a95
commit
a3b9405ae7
3 changed files with 5 additions and 5 deletions
|
@ -490,7 +490,7 @@ impl StaticMethods for CodegenCx<'ll, '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.triple().starts_with("wasm") {
|
||||
if self.tcx.sess.target.is_like_wasm {
|
||||
if let Some(section) = attrs.link_section {
|
||||
let section = llvm::LLVMMDStringInContext(
|
||||
self.llcx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue