mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
e0ca60e770
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
19 lines
463 B
TypeScript
19 lines
463 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
export const build = {
|
|
target: "unknown",
|
|
arch: "unknown",
|
|
os: "unknown",
|
|
vendor: "unknown",
|
|
env: undefined as string | undefined,
|
|
};
|
|
|
|
export function setBuildInfo(target: string): void {
|
|
const [arch, vendor, os, env] = target.split("-", 4);
|
|
build.target = target;
|
|
build.arch = arch;
|
|
build.vendor = vendor;
|
|
build.os = os;
|
|
build.env = env;
|
|
Object.freeze(build);
|
|
}
|