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

Commit

Permalink
build: enable LTO on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed May 27, 2021
1 parent 2c5d8ff commit 93de534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 93de534

Please sign in to comment.