mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +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
|
@ -4,7 +4,7 @@ import { unitTest, assert, assertEquals, assertThrows } from "./test_util.ts";
|
|||
function assertDirectory(path: string, mode?: number): void {
|
||||
const info = Deno.lstatSync(path);
|
||||
assert(info.isDirectory);
|
||||
if (Deno.build.os !== "win" && mode !== undefined) {
|
||||
if (Deno.build.os !== "windows" && mode !== undefined) {
|
||||
assertEquals(info.mode! & 0o777, mode & ~Deno.umask());
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ unitTest(
|
|||
Deno.mkdirSync(path, { recursive: true });
|
||||
Deno.mkdirSync(path, { recursive: true, mode: 0o731 });
|
||||
assertDirectory(path, 0o737);
|
||||
if (Deno.build.os != "win") {
|
||||
if (Deno.build.os !== "windows") {
|
||||
const pathLink = path + "Link";
|
||||
Deno.symlinkSync(path, pathLink);
|
||||
Deno.mkdirSync(pathLink, { recursive: true });
|
||||
|
@ -144,7 +144,7 @@ unitTest(
|
|||
await Deno.mkdir(path, { recursive: true });
|
||||
await Deno.mkdir(path, { recursive: true, mode: 0o731 });
|
||||
assertDirectory(path, 0o737);
|
||||
if (Deno.build.os != "win") {
|
||||
if (Deno.build.os !== "windows") {
|
||||
const pathLink = path + "Link";
|
||||
Deno.symlinkSync(path, pathLink);
|
||||
await Deno.mkdir(pathLink, { recursive: true });
|
||||
|
@ -178,7 +178,7 @@ unitTest(
|
|||
Deno.mkdirSync(file, { recursive: true });
|
||||
}, Deno.errors.AlreadyExists);
|
||||
|
||||
if (Deno.build.os !== "win") {
|
||||
if (Deno.build.os !== "windows") {
|
||||
const fileLink = testDir + "/fileLink";
|
||||
const dirLink = testDir + "/dirLink";
|
||||
const danglingLink = testDir + "/danglingLink";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue