build: workaround nodejs/node#39313 for macOS

All supported macOS versions have zlib as a system library.
This commit is contained in:
Jesse Chan 2021-08-20 12:06:53 +08:00
parent a479e40365
commit 925111ba5e

View File

@ -57,6 +57,12 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] {
// Small ICU
args.push('--with-intl=small-icu');
// Workaround for nodejs/node#39313
// All supported macOS versions have zlib as a system library
if (targetPlatform === 'macos') {
args.push('--shared-zlib');
}
return args;
}