summaryrefslogtreecommitdiff
path: root/tools/icu/icu-generic.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/icu/icu-generic.gyp')
-rw-r--r--tools/icu/icu-generic.gyp24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/icu/icu-generic.gyp b/tools/icu/icu-generic.gyp
index db45e6fbdf..2655b9e694 100644
--- a/tools/icu/icu-generic.gyp
+++ b/tools/icu/icu-generic.gyp
@@ -428,6 +428,12 @@
'<@(icu_src_derb)',
'no-op.cc',
],
+ 'conditions': [
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
+ ],
},
# This tool is used to rebuild res_index.res manifests
{
@@ -439,6 +445,12 @@
'iculslocs.cc',
'no-op.cc',
],
+ 'conditions': [
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
+ ],
},
# This tool is used to package, unpackage, repackage .dat files
# and convert endianesses
@@ -451,6 +463,12 @@
'<@(icu_src_icupkg)',
'no-op.cc',
],
+ 'conditions': [
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
+ ],
},
# this is used to convert .dat directly into .obj
{
@@ -462,6 +480,12 @@
'<@(icu_src_genccode)',
'no-op.cc',
],
+ 'conditions': [
+ # Avoid excessive LTO
+ ['enable_lto=="true"', {
+ 'ldflags': [ '-fno-lto' ],
+ }],
+ ],
},
],
}