Chromium Code Reviews| Index: pylib/gyp/xcode_emulation.py |
| diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py |
| index 72bb53a40dbb9fb2ce9cc9d18059da084802b204..90ebc48894421387aed8af11dc7146bf97abf025 100644 |
| --- a/pylib/gyp/xcode_emulation.py |
| +++ b/pylib/gyp/xcode_emulation.py |
| @@ -525,6 +525,14 @@ class XcodeSettings(object): |
| if self._Test('GCC_WARN_ABOUT_MISSING_NEWLINE', 'YES', default='NO'): |
| cflags.append('-Wnewline-eof') |
| + # In Xcode, this is only activated when GCC_COMPILER_VERSION is clang or |
| + # llvm-gcc. It also requires a fairly recent libtool, and |
| + # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the |
| + # path to the libLTO.dylib that matches the used clang. |
| + if self._Test('LLVM_LTO', 'YES', default='NO'): |
| + cflags.append('-flto') |
| + |
|
scottmg
2015/04/01 23:50:21
nit; extra \n
|
| + |
| self._AppendPlatformVersionMinFlags(cflags) |
| # TODO: |