Commit 013d51b
authored
fix unresolved symbol issue when using latest Rust
As of this writing, recent Rust `nightly` builds include a version of the `libc`
crate that expects `wasi-libc` to define the following global variables, but
`wasi-libc` defines them as preprocessor constants which aren't visible at link
time, so we need to define them somewhere. Ideally, we should fix this
upstream, but for now we work around it.
This commit also addresses an unused field warning.
Fixes #86
Signed-off-by: Joel Dice <joel.dice@fermyon.com>nightly (#87)1 parent fa666b9 commit 013d51b
3 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
562 | | - | |
563 | 561 | | |
564 | 562 | | |
565 | 563 | | |
| |||
578 | 576 | | |
579 | 577 | | |
580 | 578 | | |
581 | | - | |
582 | 579 | | |
583 | 580 | | |
584 | 581 | | |
| |||
0 commit comments