| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index a098a1c451fa9b7c8fa88da3c04ed0b62751a22a..8c7f0e6b19fbf06b2409ebf276b90de8b1480fb9 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -1610,9 +1610,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': {
|
|
|