From f05f37e6c0d896d6c9579b898635aab59944ffa3 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Thu, 13 Jun 2024 15:09:51 -0400 Subject: [PATCH] fix: build --- .github/scripts/libmongocrypt.mjs | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/scripts/libmongocrypt.mjs b/.github/scripts/libmongocrypt.mjs index ef5db9f..bcfc06d 100644 --- a/.github/scripts/libmongocrypt.mjs +++ b/.github/scripts/libmongocrypt.mjs @@ -133,23 +133,13 @@ export async function buildLibMongoCrypt(libmongocryptRoot, nodeDepsRoot, option await run( 'cmake', - [ - '--parallel', - '4', - ...CMAKE_FLAGS, - ...WINDOWS_CMAKE_FLAGS, - ...MACOS_CMAKE_FLAGS, - libmongocryptRoot - ], + [...CMAKE_FLAGS, ...WINDOWS_CMAKE_FLAGS, ...MACOS_CMAKE_FLAGS, libmongocryptRoot], { cwd: nodeBuildRoot } ); - await run( - 'cmake', - ['--parallel', '4', '--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'], - { - cwd: nodeBuildRoot - } - ); + + await run('cmake', ['--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'], { + cwd: nodeBuildRoot + }); } export async function downloadLibMongoCrypt(nodeDepsRoot, { ref, crypto }, fastDownload) { @@ -264,9 +254,7 @@ async function main() { const isBuilt = libmongocryptBuiltVersion.trim() === libmongocrypt.ref; if (clean || !isBuilt) { - await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, { - crypto: libmongocrypt.crypto - }); + await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, libmongocrypt); } } else { // Download