mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49: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
|
@ -10,7 +10,7 @@ unitTest({ perms: { write: true } }, function dirCwdChdirSuccess(): void {
|
|||
const path = Deno.makeTempDirSync();
|
||||
Deno.chdir(path);
|
||||
const current = Deno.cwd();
|
||||
if (Deno.build.os === "mac") {
|
||||
if (Deno.build.os === "darwin") {
|
||||
assertEquals(current, "/private" + path);
|
||||
} else {
|
||||
assertEquals(current, path);
|
||||
|
@ -20,7 +20,7 @@ unitTest({ perms: { write: true } }, function dirCwdChdirSuccess(): void {
|
|||
|
||||
unitTest({ perms: { write: true } }, function dirCwdError(): void {
|
||||
// excluding windows since it throws resource busy, while removeSync
|
||||
if (["linux", "mac"].includes(Deno.build.os)) {
|
||||
if (["linux", "darwin"].includes(Deno.build.os)) {
|
||||
const initialdir = Deno.cwd();
|
||||
const path = Deno.makeTempDirSync();
|
||||
Deno.chdir(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue