diff --git a/lib/build.ts b/lib/build.ts index 2fa63421..e08d1c84 100644 --- a/lib/build.ts +++ b/lib/build.ts @@ -43,7 +43,7 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] { // Link Time Optimization if (major >= 12) { - if (hostPlatform === 'linux' || hostPlatform === 'alpine') { + if (hostPlatform !== 'win') { args.push('--enable-lto'); } }