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 b6ee30a commit 247975a
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 @@ -1223,6 +1223,10 @@
],
},
}],
# Avoid excessive LTO
['enable_lto=="true"', {
'ldflags': [ '-fno-lto' ],
}],
]
},
{
Expand Down

0 comments on commit 247975a

Please sign in to comment.