Skip to content

Commit

Permalink
🔥 remove bogus use of -j in ninja (#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Jun 28, 2024
1 parent a3a1508 commit b657c9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/build-skia.ts
Original file line number Diff line number Diff line change
@@ -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 = <T extends object>(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
Expand Down Expand Up @@ -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
)}`;
Expand Down

0 comments on commit b657c9f

Please sign in to comment.