rustc_target: Move target_os from Target to TargetOptions

This commit is contained in:
Vadim Petrochenkov
2020-10-08 20:54:45 +03:00
parent 91533cf10e
commit 74ffb9b4a2
173 changed files with 52 additions and 169 deletions

View File

@@ -17,6 +17,7 @@ pub fn target() -> Target {
);
let opts = TargetOptions {
target_os: "emscripten".to_string(),
// emcc emits two files - a .js file to instantiate the wasm and supply platform
// functionality, and a .wasm file.
exe_suffix: ".js".to_string(),
@@ -31,7 +32,6 @@ pub fn target() -> Target {
Target {
llvm_target: "wasm32-unknown-emscripten".to_string(),
pointer_width: 32,
target_os: "emscripten".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(),