File tree 1 file changed +2
-2
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1279,7 +1279,7 @@ impl<'a> WasmLd<'a> {
1279
1279
let mut wasm_ld = WasmLd { cmd, sess } ;
1280
1280
if sess. target_features . contains ( & sym:: atomics) {
1281
1281
wasm_ld. link_args ( & [ "--shared-memory" , "--max-memory=1073741824" , "--import-memory" ] ) ;
1282
- if sess. target . os == "unknown" {
1282
+ if sess. target . os == "unknown" || sess . target . os == "none" {
1283
1283
wasm_ld. link_args ( & [
1284
1284
"--export=__wasm_init_tls" ,
1285
1285
"--export=__tls_size" ,
@@ -1403,7 +1403,7 @@ impl<'a> Linker for WasmLd<'a> {
1403
1403
// symbols explicitly passed via the `--export` flags above and hides all
1404
1404
// others. Various bits and pieces of wasm32-unknown-unknown tooling use
1405
1405
// this, so be sure these symbols make their way out of the linker as well.
1406
- if self . sess . target . os == "unknown" {
1406
+ if self . sess . target . os == "unknown" || self . sess . target . os == "none" {
1407
1407
self . link_args ( & [ "--export=__heap_base" , "--export=__data_end" ] ) ;
1408
1408
}
1409
1409
}
You can’t perform that action at this time.
0 commit comments