Skip to content

Commit 88bcd37

Browse files
committed
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 138fe81 commit 88bcd37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

node.gyp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,10 @@
12141214
],
12151215
},
12161216
}],
1217+
# Avoid excessive LTO
1218+
['enable_lto=="true"', {
1219+
'ldflags': [ '-fno-lto' ],
1220+
}],
12171221
]
12181222
},
12191223
{

0 commit comments

Comments
 (0)