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

Commit

Permalink
patches: get rid of "-fuse-linker-plugin" to get LTO working
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Apr 15, 2021
1 parent b5d926a commit 835ae3b
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 @@ -555,3 +555,16 @@ index 0240b2ef58..4d661ea0f3 100644
AddOption("--inspect-port",
"set host:port for inspector",
&DebugOptions::host_port,
diff --git node/common.gypi node/common.gypi
index 79a22ac0fa..cea46e2779 100644
--- node/common.gypi
+++ node/common.gypi
@@ -164,7 +164,7 @@
'v8_enable_handle_zapping': 0,
'pgo_generate': ' -fprofile-generate ',
'pgo_use': ' -fprofile-use -fprofile-correction ',
- 'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ',
+ 'lto': ' -flto=4 -ffat-lto-objects ',
'conditions': [
['node_shared != "true"', {
'MSVC_runtimeType': 0 # MultiThreaded (/MT)
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 @@ -604,3 +604,16 @@ new file mode 100644
&DebugOptions::host_port,
kAllowedInEnvironment);
AddAlias("--debug-port", "--inspect-port");
diff --git node/common.gypi node/common.gypi
index 79a22ac0fa..cea46e2779 100644
--- node/common.gypi
+++ node/common.gypi
@@ -164,7 +164,7 @@
'v8_enable_handle_zapping': 0,
'pgo_generate': ' -fprofile-generate ',
'pgo_use': ' -fprofile-use -fprofile-correction ',
- 'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ',
+ 'lto': ' -flto=4 -ffat-lto-objects ',
'conditions': [
['node_shared != "true"', {
'MSVC_runtimeType': 0 # MultiThreaded (/MT)

0 comments on commit 835ae3b

Please sign in to comment.