Skip to content

Commit 1a5d641

Browse files
committed
fix: build
1 parent 9840e82 commit 1a5d641

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/scripts/libmongocrypt.mjs

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,13 @@ export async function buildLibMongoCrypt(libmongocryptRoot, nodeDepsRoot, option
134134

135135
await run(
136136
'cmake',
137-
[
138-
'--parallel',
139-
'4',
140-
...CMAKE_FLAGS,
141-
...WINDOWS_CMAKE_FLAGS,
142-
...MACOS_CMAKE_FLAGS,
143-
libmongocryptRoot
144-
],
137+
[...CMAKE_FLAGS, ...WINDOWS_CMAKE_FLAGS, ...MACOS_CMAKE_FLAGS, libmongocryptRoot],
145138
{ cwd: nodeBuildRoot }
146139
);
147-
await run(
148-
'cmake',
149-
['--parallel', '4', '--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'],
150-
{
151-
cwd: nodeBuildRoot
152-
}
153-
);
140+
141+
await run('cmake', ['--build', '.', '--target', 'install', '--config', 'RelWithDebInfo'], {
142+
cwd: nodeBuildRoot
143+
});
154144
}
155145

156146
export async function downloadLibMongoCrypt(nodeDepsRoot, { ref, crypto }, fastDownload) {
@@ -265,9 +255,7 @@ async function main() {
265255
const isBuilt = libmongocryptBuiltVersion.trim() === libmongocrypt.ref;
266256

267257
if (clean || !isBuilt) {
268-
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, {
269-
crypto: libmongocrypt.crypto
270-
});
258+
await buildLibMongoCrypt(libmongocryptCloneDir, nodeDepsDir, libmongocrypt);
271259
}
272260
} else {
273261
// Download

0 commit comments

Comments
 (0)