build: enable LTO on macOS

This commit is contained in:
Jesse Chan 2021-05-27 20:37:35 +08:00
parent 2c5d8ffe86
commit 93de534a9d

View File

@ -43,7 +43,7 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] {
// Link Time Optimization // Link Time Optimization
if (major >= 12) { if (major >= 12) {
if (hostPlatform === 'linux' || hostPlatform === 'alpine') { if (hostPlatform !== 'win') {
args.push('--enable-lto'); args.push('--enable-lto');
} }
} }