1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/build/common.gypi.orig b/build/common.gypi
index cce7b3c..3b905c0 100644
--- a/build/common.gypi.orig
+++ b/build/common.gypi
@@ -6096,7 +6096,7 @@
'target_conditions': [
['_toolset=="target"', {
'ldflags': [
- '-flto=32',
+ '-flto=4'
],
}],
],
diff --git a/build/android/disable_gcc_lto.gypi.orig b/build/android/disable_gcc_lto.gypi
index a733c7a..57570f8 100644
--- a/build/android/disable_gcc_lto.gypi.orig
+++ b/build/android/disable_gcc_lto.gypi
@@ -8,7 +8,7 @@
'target_conditions': [
['_toolset=="target"', {
'conditions': [
- ['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
+ ['(OS=="android" or OS=="linux") and clang==0 and (use_lto==1 or use_lto_o2==1)', {
'cflags!': [
'-flto',
'-ffat-lto-objects',
|