Skip to content

Commit

Permalink
Merge pull request #18 from malbarbo/emscripten
Browse files Browse the repository at this point in the history
Add support to emscripten targets
  • Loading branch information
alexcrichton committed Jun 7, 2017
2 parents 62e6003 + ae23ed4 commit f4835aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctest"
version = "0.1.2"
version = "0.1.3"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand Down
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 f4835aa

Please sign in to comment.