Emscripten targets are Unix targets

This commit is contained in:
Brian Anderson 2016-12-25 02:09:10 +00:00
parent e60aa62ffe
commit 31bda236bd
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ pub fn target() -> Result<Target, String> {
target_os: "emscripten".to_string(),
target_env: "".to_string(),
target_vendor: "unknown".to_string(),
target_family: Some("unix".to_string()),
data_layout: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
arch: "asmjs".to_string(),
options: opts,

View file

@ -35,6 +35,7 @@ pub fn target() -> Result<Target, String> {
target_os: "emscripten".to_string(),
target_env: "".to_string(),
target_vendor: "unknown".to_string(),
target_family: Some("unix".to_string()),
data_layout: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
arch: "wasm32".to_string(),
options: opts,