Move target_family to TargetOptions, not Target

Just fixing a compile error
This commit is contained in:
Alex Crichton 2016-12-25 14:03:44 -08:00
parent 31bda236bd
commit f262eea2ee
2 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,7 @@ pub fn target() -> Result<Target, String> {
obj_is_bitcode: true,
max_atomic_width: Some(32),
post_link_args: vec!["-s".to_string(), "ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()],
target_family: Some("unix".to_string()),
.. Default::default()
};
Ok(Target {
@ -32,7 +33,6 @@ 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

@ -26,6 +26,7 @@ pub fn target() -> Result<Target, String> {
max_atomic_width: Some(32),
post_link_args: vec!["-s".to_string(), "BINARYEN=1".to_string(),
"-s".to_string(), "ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()],
target_family: Some("unix".to_string()),
.. Default::default()
};
Ok(Target {
@ -35,7 +36,6 @@ 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,