rustc_target: Move target_os from Target to TargetOptions
This commit is contained in:
@@ -15,6 +15,7 @@ use super::{LinkerFlavor, LldFlavor, Target};
|
||||
|
||||
pub fn target() -> Target {
|
||||
let mut options = wasm32_base::options();
|
||||
options.target_os = "unknown".to_string();
|
||||
let clang_args = options.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap();
|
||||
|
||||
// Make sure clang uses LLD as its linker and is configured appropriately
|
||||
@@ -33,7 +34,6 @@ pub fn target() -> Target {
|
||||
Target {
|
||||
llvm_target: "wasm32-unknown-unknown".to_string(),
|
||||
pointer_width: 32,
|
||||
target_os: "unknown".to_string(),
|
||||
target_env: String::new(),
|
||||
target_vendor: "unknown".to_string(),
|
||||
data_layout: "e-m:e-p:32:32-i64:64-n32:64-S128".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user