Skip to content

Commit 31bda23

Browse files
committed
Emscripten targets are Unix targets
1 parent e60aa62 commit 31bda23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustc_back/target/asmjs_unknown_emscripten.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn target() -> Result<Target, String> {
3232
target_os: "emscripten".to_string(),
3333
target_env: "".to_string(),
3434
target_vendor: "unknown".to_string(),
35+
target_family: Some("unix".to_string()),
3536
data_layout: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
3637
arch: "asmjs".to_string(),
3738
options: opts,

src/librustc_back/target/wasm32_unknown_emscripten.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub fn target() -> Result<Target, String> {
3535
target_os: "emscripten".to_string(),
3636
target_env: "".to_string(),
3737
target_vendor: "unknown".to_string(),
38+
target_family: Some("unix".to_string()),
3839
data_layout: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
3940
arch: "wasm32".to_string(),
4041
options: opts,

0 commit comments

Comments
 (0)