Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: build/common.gypi

Issue 9789003: lto Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 122f557fceb8df1e5b0148bee60f17a4ee1ce194..f416a5ef2738a1159f9d0a5143ea6cda4c5d012c 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2562,9 +2562,15 @@
'NDEBUG',
],
'xcode_settings': {
- 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
+ #'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip # lto + this = ld crash
'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
- 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
+ 'OTHER_CFLAGS': [ '<@(release_extra_cflags)',
+ '-Qunused-arguments', # -flto for .S files for example.
+ ],
+ 'LLVM_LTO': 'YES', # -flto, XXX
+ # makes libtool complain like
+ # "descriptor.o is not an object file (not allowed in a library)"
+ # with xcodebuild? at least with xcode 3.2.6.
},
'msvs_settings': {
'VCCLCompilerTool': {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698