diff options
author | Konstantin Demin <rockdrilla@gmail.com> | 2023-04-06 03:24:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 00:24:58 +0000 |
commit | c3cd75d10ba116dff3dd839cbc5a034cf39a0095 (patch) | |
tree | 640b9eb6436ab5c2bda0de522124220954e78b6b /deps | |
parent | 5c86f223aec046d6dd37b5ff22907e30be7315ee (diff) | |
download | node-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.gypi | 4 | ||||
-rw-r--r-- | deps/openssl/openssl.gyp | 4 |
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 |