Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
patches: disable LTO for ICU tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Apr 15, 2021
1 parent 835ae3b commit 963e36e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/node.v12.22.1.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -568,3 +568,16 @@ index 79a22ac0fa..cea46e2779 100644
'conditions': [
['node_shared != "true"', {
'MSVC_runtimeType': 0 # MultiThreaded (/MT)
diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
index 680f8528df..ff5f7681b2 100644
--- node/tools/icu/icu-generic.gyp
+++ node/tools/icu/icu-generic.gyp
@@ -52,7 +52,7 @@
'conditions': [
[ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
'cflags': [ '-Wno-deprecated-declarations', '-Wno-strict-aliasing' ],
- 'cflags_cc': [ '-frtti' ],
+ 'cflags_cc': [ '-frtti', '-fno-lto' ],
'cflags_cc!': [ '-fno-rtti' ],
}],
[ 'OS == "mac" or OS == "ios"', {
13 changes: 13 additions & 0 deletions patches/node.v14.16.1.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -617,3 +617,16 @@ index 79a22ac0fa..cea46e2779 100644
'conditions': [
['node_shared != "true"', {
'MSVC_runtimeType': 0 # MultiThreaded (/MT)
diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
index 680f8528df..ff5f7681b2 100644
--- node/tools/icu/icu-generic.gyp
+++ node/tools/icu/icu-generic.gyp
@@ -52,7 +52,7 @@
'conditions': [
[ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
'cflags': [ '-Wno-deprecated-declarations', '-Wno-strict-aliasing' ],
- 'cflags_cc': [ '-frtti' ],
+ 'cflags_cc': [ '-frtti', '-fno-lto' ],
'cflags_cc!': [ '-fno-rtti' ],
}],
[ 'OS == "mac" or OS == "ios"', {

0 comments on commit 963e36e

Please sign in to comment.