mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build, deps, tools: avoid excessive LTO
Don't link intermediate executables with LTO in order to speed up overall build time. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com> PR-URL: https://github.com/nodejs/node/pull/47313 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
4
deps/openssl/openssl-cli.gypi
vendored
4
deps/openssl/openssl-cli.gypi
vendored
@@ -21,5 +21,9 @@
|
||||
],
|
||||
},
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
||||
4
deps/openssl/openssl.gyp
vendored
4
deps/openssl/openssl.gyp
vendored
@@ -79,6 +79,10 @@
|
||||
}, {
|
||||
'includes': ['./openssl-cl_asm.gypi'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
]
|
||||
}, {
|
||||
# openssl-fipsmodule target
|
||||
|
||||
20
node.gyp
20
node.gyp
@@ -969,6 +969,10 @@
|
||||
[ 'OS!="linux" or ossfuzz!="true"', {
|
||||
'type': 'none',
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}, # fuzz_env
|
||||
{
|
||||
@@ -1071,6 +1075,10 @@
|
||||
'Ws2_32.lib',
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}, # cctest
|
||||
|
||||
@@ -1124,6 +1132,10 @@
|
||||
'Ws2_32.lib',
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}, # embedtest
|
||||
|
||||
@@ -1142,6 +1154,10 @@
|
||||
'test/overlapped-checker/main_unix.c'
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
]
|
||||
}, # overlapped-checker
|
||||
{
|
||||
@@ -1198,6 +1214,10 @@
|
||||
'Ws2_32.lib',
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}, # node_mksnapshot
|
||||
], # end targets
|
||||
|
||||
@@ -428,6 +428,12 @@
|
||||
'<@(icu_src_derb)',
|
||||
'no-op.cc',
|
||||
],
|
||||
'conditions': [
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
# This tool is used to rebuild res_index.res manifests
|
||||
{
|
||||
@@ -439,6 +445,12 @@
|
||||
'iculslocs.cc',
|
||||
'no-op.cc',
|
||||
],
|
||||
'conditions': [
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
# This tool is used to package, unpackage, repackage .dat files
|
||||
# and convert endianesses
|
||||
@@ -451,6 +463,12 @@
|
||||
'<@(icu_src_icupkg)',
|
||||
'no-op.cc',
|
||||
],
|
||||
'conditions': [
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
# this is used to convert .dat directly into .obj
|
||||
{
|
||||
@@ -462,6 +480,12 @@
|
||||
'<@(icu_src_genccode)',
|
||||
'no-op.cc',
|
||||
],
|
||||
'conditions': [
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -69,6 +69,10 @@
|
||||
'<(icu_gyp_path):icudata',
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1511,6 +1511,10 @@
|
||||
['want_separate_host_toolset', {
|
||||
'toolsets': ['host'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
'defines!': [
|
||||
'BUILDING_V8_SHARED=1',
|
||||
@@ -1556,6 +1560,10 @@
|
||||
'<(_msvs_precompiled_source)',
|
||||
],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
}, # mksnapshot
|
||||
{
|
||||
@@ -1569,6 +1577,10 @@
|
||||
['want_separate_host_toolset', {
|
||||
'toolsets': ['host'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
'defines!': [
|
||||
'_HAS_EXCEPTIONS=0',
|
||||
@@ -1603,6 +1615,10 @@
|
||||
['want_separate_host_toolset', {
|
||||
'toolsets': ['host'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
'dependencies': [
|
||||
'torque_base',
|
||||
@@ -1635,6 +1651,10 @@
|
||||
['want_separate_host_toolset', {
|
||||
'toolsets': ['host'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
'sources': [
|
||||
"<(V8_ROOT)/src/regexp/gen-regexp-special-case.cc",
|
||||
@@ -1651,6 +1671,10 @@
|
||||
}, {
|
||||
'dependencies': ['gen-regexp-special-case#target'],
|
||||
}],
|
||||
# Avoid excessive LTO
|
||||
['enable_lto=="true"', {
|
||||
'ldflags': [ '-fno-lto' ],
|
||||
}],
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user