Skip to content

Commit

Permalink
Add wasi definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 21, 2019
1 parent 9b8a31e commit c908271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
("solaris", "unix", "")
} else if target.contains("emscripten") {
("emscripten", "unix", "")
} else if target.contains("wasi") {
("unknown", "", "wasi")
} else {
panic!("unknown os/family width: {}", target)
};
Expand Down

0 comments on commit c908271

Please sign in to comment.