Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 925111b

Browse files
committed
build: workaround nodejs/node#39313 for macOS
All supported macOS versions have zlib as a system library.
1 parent a479e40 commit 925111b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/build.ts

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] {
5757
// Small ICU
5858
args.push('--with-intl=small-icu');
5959

60+
// Workaround for nodejs/node#39313
61+
// All supported macOS versions have zlib as a system library
62+
if (targetPlatform === 'macos') {
63+
args.push('--shared-zlib');
64+
}
65+
6066
return args;
6167
}
6268

0 commit comments

Comments
 (0)