Skip to content

Commit

Permalink
Add support emscripten targets
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed Jun 7, 2017
1 parent 62e6003 commit 514a2f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,10 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
("s390x", "64")
} else if target.starts_with("sparc64") {
("sparc64", "64")
} else if target.starts_with("asmjs") {
("asmjs", "32")
} else if target.starts_with("wasm32") {
("wasm32", "32")
} else {
panic!("unknown arch/pointer width: {}", target)
};
Expand Down Expand Up @@ -796,6 +800,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
("openbsd", "unix", "")
} else if target.contains("dragonfly") {
("dragonfly", "unix", "")
} else if target.contains("emscripten") {
("emscripten", "unix", "")
} else {
panic!("unknown os/family width: {}", target)
};
Expand Down

0 comments on commit 514a2f2

Please sign in to comment.