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"
This commit is contained in:
Ryan Dahl 2020-04-28 12:35:23 -04:00 committed by GitHub
parent f7ab19b1b7
commit e0ca60e770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 165 additions and 188 deletions

View file

@ -6,7 +6,7 @@ import * as util from "./util.ts";
import { setBuildInfo } from "./build.ts";
import { setVersions } from "./version.ts";
import { setPrepareStackTrace } from "./error_stack.ts";
import { Start, start as startOp } from "./ops/runtime.ts";
import { Start, opStart } from "./ops/runtime.ts";
import { handleTimerMacrotask } from "./web/timers.ts";
export let OPS_CACHE: { [name: string]: number };
@ -36,12 +36,10 @@ export function start(source?: string): Start {
// First we send an empty `Start` message to let the privileged side know we
// are ready. The response should be a `StartRes` message containing the CLI
// args and other info.
const s = startOp();
const s = opStart();
setVersions(s.denoVersion, s.v8Version, s.tsVersion);
setBuildInfo(s.os, s.arch);
setBuildInfo(s.target);
util.setLogDebug(s.debugFlag, source);
setPrepareStackTrace(Error);
return s;
}