-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathno-libc-wasm32.json
33 lines (27 loc) · 1018 Bytes
/
no-libc-wasm32.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"llvm-target": "wasm32-unknown-unknown",
"arch": "wasm32",
"os": "unknown",
"env": "",
"vendor": "",
"linker-flavor": "ld.lld",
"linker": "rust-lld",
// We want to forbid linking the built-in Rust standard libraries:
"no-default-libraries": true,
// If we used threads, we'd need TLS, but we're going minimal:
"has-thread-local": false,
// We don't want the compiler to automatically embed a runtime start:
"executables": false,
// Make sure we do not attempt to call unwinding or fallback runtime code:
"panic-strategy": "abort",
"relocation-model": "static",
// Let the compiler know it's basically a "bare" wasm environment
"is-like-bare": true,
"is-like-wasm": true,
// If you ever need atomics or bulk-memory, specify them. By default, it's empty.
"features": "",
"max-atomic-width": 32,
// These two lines help ensure we don't get default crate linkage:
"no-compiler-rt": true,
"disable-redzone": true
}