summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorKonstantin Demin <rockdrilla@gmail.com>2023-04-06 03:24:58 +0300
committerGitHub <noreply@github.com>2023-04-06 00:24:58 +0000
commitc3cd75d10ba116dff3dd839cbc5a034cf39a0095 (patch)
tree640b9eb6436ab5c2bda0de522124220954e78b6b /deps
parent5c86f223aec046d6dd37b5ff22907e30be7315ee (diff)
downloadnode-new-c3cd75d10ba116dff3dd839cbc5a034cf39a0095.tar.gz
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>
Diffstat (limited to 'deps')
-rw-r--r--deps/openssl/openssl-cli.gypi4
-rw-r--r--deps/openssl/openssl.gyp4
2 files changed, 8 insertions, 0 deletions
diff --git a/deps/openssl/openssl-cli.gypi b/deps/openssl/openssl-cli.gypi
index 1209d64e46..b4c278b4fe 100644
--- a/deps/openssl/openssl-cli.gypi
+++ b/deps/openssl/openssl-cli.gypi
@@ -21,5 +21,9 @@
],
},
}],
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
],
}
diff --git a/deps/openssl/openssl.gyp b/deps/openssl/openssl.gyp
index 861bbc5844..f6b157f8d6 100644
--- a/deps/openssl/openssl.gyp
+++ b/deps/openssl/openssl.gyp
@@ -79,6 +79,10 @@
}, {
'includes': ['./openssl-cl_asm.gypi'],
}],
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
]
}, {
# openssl-fipsmodule target