Skip to content

Commit

Permalink
Really use Ninja for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Mar 14, 2024
1 parent ae5afd6 commit 0f765e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions kmake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,10 @@ export async function run(options: any, loglog: any): Promise<string> {
const dothemath = is64bit();
let make: child_process.ChildProcess = null;

if (isPlatform(options, Platform.Linux) || isPlatform(options, Platform.Wasm)) {
if (isPlatform(options, Platform.Linux) || isPlatform(options, Platform.Wasm) || isPlatform(options, Platform.Pi) || isPlatform(options, Platform.Emscripten)) {
make = child_process.spawn('ninja', [], { cwd: path.join(options.to, options.buildPath) });
}
else if (isPlatform(options, Platform.FreeBSD) || isPlatform(options, Platform.Pi) || isPlatform(options, Platform.Emscripten)) {
else if (isPlatform(options, Platform.FreeBSD)) {
make = child_process.spawn('make', [], { cwd: path.join(options.to, options.buildPath) });
}
else if (isPlatform(options, Platform.OSX) || isPlatform(options, Platform.iOS) || isPlatform(options, Platform.tvOS)) {
Expand Down Expand Up @@ -1059,7 +1059,7 @@ export async function run(options: any, loglog: any): Promise<string> {
throw 'Compile error';
}
else {
if (isPlatform(options, Platform.Linux) || isPlatform(options, Platform.Wasm) || isPlatform(options, Platform.Pi)) {
if (isPlatform(options, Platform.Linux) || isPlatform(options, Platform.Wasm) || isPlatform(options, Platform.Pi) || isPlatform(options, Platform.Emscripten)) {
log.error('Ninja could not be run, falling back to make.');
make = child_process.spawn('make', ['-j', Options.cores.toString()], { cwd: path.join(options.to, options.buildPath) });
try {
Expand Down
6 changes: 3 additions & 3 deletions lib/kmake/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f765e8

Please sign in to comment.