From b657c9f81eea10f819aa8b18483742e85ce68162 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Fri, 28 Jun 2024 08:47:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20bogus=20use=20of=20-j?= =?UTF-8?q?=20in=20ninja=20(#2504)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/build-skia.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build-skia.ts b/scripts/build-skia.ts index 7435dae934..9674c9c21a 100644 --- a/scripts/build-skia.ts +++ b/scripts/build-skia.ts @@ -1,11 +1,9 @@ import { executeCmd, executeCmdSync } from "./utils"; import { exit } from "process"; import { commonArgs, configurations, PlatformName } from "./skia-configuration"; -import { cpus } from "os"; import { existsSync, mkdirSync } from "fs"; const typedKeys = (obj: T) => Object.keys(obj) as (keyof T)[]; -const cores = Math.max(1, cpus().length - 2); /** * This build script builds the Skia Binaries from the Skia repositories @@ -127,7 +125,7 @@ const buildPlatform = ( // We need to include the path to our custom python2 -> python3 mapping script // to make sure we can run all scripts that uses #!/usr/bin/env python as shebang // https://groups.google.com/g/skia-discuss/c/BYyB-TwA8ow - const command = `PATH=${process.cwd()}/../bin:$PATH ninja -j ${cores} -C ${getOutDir( + const command = `PATH=${process.cwd()}/../bin:$PATH ninja -C ${getOutDir( platform, targetName )}`;