|
| 1 | +diff --git a/common.gypi b/common.gypi |
| 2 | +index 23196aae..4a3d643b 100644 |
| 3 | +--- a/common.gypi |
| 4 | ++++ b/common.gypi |
| 5 | +@@ -185,9 +185,9 @@ |
| 6 | + 'MSVC_runtimeType': 2 # MultiThreadedDLL (/MD) |
| 7 | + }], |
| 8 | + ['clang==1', { |
| 9 | +- 'lto': ' -flto ', # Clang |
| 10 | ++ 'lto': ' -flto=thin ', # Clang |
| 11 | + }, { |
| 12 | +- 'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ', # GCC |
| 13 | ++ 'lto': ' -flto=auto -fuse-linker-plugin -fno-fat-lto-objects ', # GCC |
| 14 | + }], |
| 15 | + ], |
| 16 | + }, |
| 17 | +diff --git a/deps/cares/configure b/deps/cares/configure |
| 18 | +index 76b0ddf3..08b743b3 100755 |
| 19 | +--- a/deps/cares/configure |
| 20 | ++++ b/deps/cares/configure |
| 21 | +@@ -16126,11 +16126,6 @@ _LT_EOF |
| 22 | + |
| 23 | + |
| 24 | + _lt_libdeps_save_CFLAGS=$CFLAGS |
| 25 | +-case "$CC $CFLAGS " in #( |
| 26 | +-*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 27 | +-*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 28 | +-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 29 | +-esac |
| 30 | + |
| 31 | + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 32 | + (eval $ac_compile) 2>&5 |
| 33 | +diff --git a/deps/cares/m4/libtool.m4 b/deps/cares/m4/libtool.m4 |
| 34 | +index c4c02946..9f3d3662 100755 |
| 35 | +--- a/deps/cares/m4/libtool.m4 |
| 36 | ++++ b/deps/cares/m4/libtool.m4 |
| 37 | +@@ -7537,11 +7537,6 @@ _LT_EOF |
| 38 | + ]) |
| 39 | + |
| 40 | + _lt_libdeps_save_CFLAGS=$CFLAGS |
| 41 | +-case "$CC $CFLAGS " in #( |
| 42 | +-*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 43 | +-*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 44 | +-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 45 | +-esac |
| 46 | + |
| 47 | + dnl Parse the compiler output and extract the necessary |
| 48 | + dnl objects, libraries and library flags. |
| 49 | +diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py |
| 50 | +index 5f2c097f..42dad126 100644 |
| 51 | +--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py |
| 52 | ++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py |
| 53 | +@@ -638,7 +638,7 @@ class XcodeSettings: |
| 54 | + # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the |
| 55 | + # path to the libLTO.dylib that matches the used clang. |
| 56 | + if self._Test("LLVM_LTO", "YES", default="NO"): |
| 57 | +- cflags.append("-flto") |
| 58 | ++ cflags.append("-flto=thin") |
| 59 | + |
| 60 | + self._AppendPlatformVersionMinFlags(cflags) |
| 61 | + |
| 62 | +@@ -1101,7 +1101,7 @@ class XcodeSettings: |
| 63 | + # For static libraries, no dSYMs are created. |
| 64 | + result = [] |
| 65 | + if ( |
| 66 | +- self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="YES") |
| 67 | ++ self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="NO") |
| 68 | + and self._Test( |
| 69 | + "DEBUG_INFORMATION_FORMAT", "dwarf-with-dsym", default="dwarf" |
| 70 | + ) |
| 71 | +diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py |
| 72 | +index f567542b..604f6895 100644 |
| 73 | +--- a/tools/gyp/pylib/gyp/xcode_emulation.py |
| 74 | ++++ b/tools/gyp/pylib/gyp/xcode_emulation.py |
| 75 | +@@ -638,7 +638,7 @@ class XcodeSettings: |
| 76 | + # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the |
| 77 | + # path to the libLTO.dylib that matches the used clang. |
| 78 | + if self._Test("LLVM_LTO", "YES", default="NO"): |
| 79 | +- cflags.append("-flto") |
| 80 | ++ cflags.append("-flto=thin") |
| 81 | + |
| 82 | + self._AppendPlatformVersionMinFlags(cflags) |
| 83 | + |
| 84 | +@@ -1101,7 +1101,7 @@ class XcodeSettings: |
| 85 | + # For static libraries, no dSYMs are created. |
| 86 | + result = [] |
| 87 | + if ( |
| 88 | +- self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="YES") |
| 89 | ++ self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="NO") |
| 90 | + and self._Test( |
| 91 | + "DEBUG_INFORMATION_FORMAT", "dwarf-with-dsym", default="dwarf" |
| 92 | + ) |
0 commit comments