| 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': {
|
|
|