|
| 1 | +diff --git a/common.gypi b/common.gypi |
| 2 | +index c51dbca5..1ebcc2c4 100644 |
| 3 | +--- a/common.gypi |
| 4 | ++++ b/common.gypi |
| 5 | +@@ -176,7 +176,7 @@ |
| 6 | + ['llvm_version=="0.0"', { |
| 7 | + 'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ', # GCC |
| 8 | + }, { |
| 9 | +- 'lto': ' -flto ', # Clang |
| 10 | ++ 'lto': ' -flto=thin ', # Clang |
| 11 | + }], |
| 12 | + ], |
| 13 | + }, |
| 14 | +@@ -184,7 +184,7 @@ |
| 15 | + 'conditions': [ |
| 16 | + ['enable_lto=="true"', { |
| 17 | + 'cflags': ['<(lto)'], |
| 18 | +- 'ldflags': ['<(lto)'], |
| 19 | ++ 'ldflags': ['<(lto)', '-fuse-ld=lld', '-Wl,--strip-all,--thinlto-cache-dir=/tmp'], |
| 20 | + 'xcode_settings': { |
| 21 | + 'LLVM_LTO': 'YES', |
| 22 | + }, |
| 23 | +diff --git a/deps/cares/configure b/deps/cares/configure |
| 24 | +index ebaa43c2..4f7861a8 100755 |
| 25 | +--- a/deps/cares/configure |
| 26 | ++++ b/deps/cares/configure |
| 27 | +@@ -18815,11 +18815,6 @@ _LT_EOF |
| 28 | + |
| 29 | + |
| 30 | + _lt_libdeps_save_CFLAGS=$CFLAGS |
| 31 | +-case "$CC $CFLAGS " in #( |
| 32 | +-*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 33 | +-*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 34 | +-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 35 | +-esac |
| 36 | + |
| 37 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 38 | + (eval $ac_compile) 2>&5 |
| 39 | +diff --git a/deps/cares/m4/libtool.m4 b/deps/cares/m4/libtool.m4 |
| 40 | +index e7b68334..13ec17a6 100644 |
| 41 | +--- a/deps/cares/m4/libtool.m4 |
| 42 | ++++ b/deps/cares/m4/libtool.m4 |
| 43 | +@@ -7562,11 +7562,6 @@ _LT_EOF |
| 44 | + ]) |
| 45 | + |
| 46 | + _lt_libdeps_save_CFLAGS=$CFLAGS |
| 47 | +-case "$CC $CFLAGS " in #( |
| 48 | +-*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 49 | +-*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 50 | +-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 51 | +-esac |
| 52 | + |
| 53 | + dnl Parse the compiler output and extract the necessary |
| 54 | + dnl objects, libraries and library flags. |
| 55 | +diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp |
| 56 | +index 45323919..3cf40c59 100644 |
| 57 | +--- a/tools/v8_gypfiles/v8.gyp |
| 58 | ++++ b/tools/v8_gypfiles/v8.gyp |
| 59 | +@@ -1723,9 +1723,6 @@ |
| 60 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"v8_heap_base.*?sources = ")', |
| 61 | + ], |
| 62 | + 'conditions': [ |
| 63 | +- ['enable_lto=="true"', { |
| 64 | +- 'cflags_cc': [ '-fno-lto' ], |
| 65 | +- }], |
| 66 | + ['clang or OS!="win"', { |
| 67 | + 'conditions': [ |
| 68 | + ['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', { |
0 commit comments