Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 483cffd

Browse files
committedAug 8, 2023
build: avoid excessive LTO
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>
1 parent 0dbdc8a commit 483cffd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎node.gyp

+4
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,10 @@
12231223
],
12241224
},
12251225
}],
1226+
# Avoid excessive LTO
1227+
['enable_lto=="true"', {
1228+
'ldflags': [ '-fno-lto' ],
1229+
}],
12261230
]
12271231
},
12281232
{

0 commit comments

Comments
 (0)
Please sign in to comment.