diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-28 12:35:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:35:23 -0400 |
commit | e0ca60e7707b5896ce67301aefd1de4a76e3cf75 (patch) | |
tree | 4c5357a3d3482b14cbc3773374aa885e1e29e90c /cli/ops/runtime.rs | |
parent | f7ab19b1b7ba929f7fd1550e2e4ecebe91cd9ea3 (diff) |
BREAKING: Use LLVM target triple for Deno.build (#4948)
Deno.build.os values have changed to correspond to standard LLVM target triples
"win" -> "windows"
"mac" -> "darwin"
Diffstat (limited to 'cli/ops/runtime.rs')
-rw-r--r-- | cli/ops/runtime.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cli/ops/runtime.rs b/cli/ops/runtime.rs index 72555344c..96bf451ed 100644 --- a/cli/ops/runtime.rs +++ b/cli/ops/runtime.rs @@ -9,16 +9,6 @@ use deno_core::CoreIsolate; use deno_core::ZeroCopyBuf; use std::env; -/// BUILD_OS and BUILD_ARCH match the values in Deno.build. See js/build.ts. -#[cfg(target_os = "macos")] -static BUILD_OS: &str = "mac"; -#[cfg(target_os = "linux")] -static BUILD_OS: &str = "linux"; -#[cfg(target_os = "windows")] -static BUILD_OS: &str = "win"; -#[cfg(target_arch = "x86_64")] -static BUILD_ARCH: &str = "x64"; - pub fn init(i: &mut CoreIsolate, s: &State) { i.register_op("op_start", s.stateful_json_op(op_start)); i.register_op("op_metrics", s.stateful_json_op(op_metrics)); @@ -45,8 +35,7 @@ fn op_start( "denoVersion": version::DENO, "tsVersion": version::TYPESCRIPT, "noColor": !colors::use_color(), - "os": BUILD_OS, - "arch": BUILD_ARCH, + "target": env!("TARGET"), }))) } |