Skip to content

Commit

Permalink
build: avoid excessive LTO
Browse files Browse the repository at this point in the history
Don't link intermediate executables with LTO in order to speed up
overall build time.

Fixes: nodejs#47313
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
  • Loading branch information
rockdrilla committed Aug 8, 2023
1 parent 138fe81 commit 88bcd37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,10 @@
],
},
}],
# Avoid excessive LTO
['enable_lto=="true"', {
'ldflags': [ '-fno-lto' ],
}],
]
},
{
Expand Down

0 comments on commit 88bcd37

Please sign in to comment.