mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
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:
parent
f7ab19b1b7
commit
e0ca60e770
50 changed files with 165 additions and 188 deletions
26
cli/js/lib.deno.ns.d.ts
vendored
26
cli/js/lib.deno.ns.d.ts
vendored
|
@ -40,7 +40,7 @@ declare namespace Deno {
|
|||
*
|
||||
* Deno.test({
|
||||
* name: "example ignored test",
|
||||
* ignore: Deno.build.os === "win"
|
||||
* ignore: Deno.build.os === "windows"
|
||||
* fn(): void {
|
||||
* // This test is ignored only on Windows machines
|
||||
* },
|
||||
|
@ -2365,19 +2365,19 @@ declare namespace Deno {
|
|||
*/
|
||||
export function inspect(value: unknown, options?: InspectOptions): string;
|
||||
|
||||
export type OperatingSystem = "mac" | "win" | "linux";
|
||||
|
||||
export type Arch = "x64" | "arm64";
|
||||
|
||||
interface BuildInfo {
|
||||
/** The CPU architecture. */
|
||||
arch: Arch;
|
||||
/** The operating system. */
|
||||
os: OperatingSystem;
|
||||
}
|
||||
|
||||
/** Build related information. */
|
||||
export const build: BuildInfo;
|
||||
export const build: {
|
||||
/** The LLVM target triple */
|
||||
target: string;
|
||||
/** Instruction set architecture */
|
||||
arch: "x86_64";
|
||||
/** Operating system */
|
||||
os: "darwin" | "linux" | "windows";
|
||||
/** Computer vendor */
|
||||
vendor: string;
|
||||
/** Optional environment */
|
||||
env?: string;
|
||||
};
|
||||
|
||||
interface Version {
|
||||
deno: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue