1 Index: gyp/pylib/gyp/xcode_emulation.py
2 ===================================================================
3 --- gyp/pylib/gyp/xcode_emulation.py
4 +++ gyp/pylib/gyp/xcode_emulation.py
6 if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
7 cflags.append('-funsigned-char')
9 - if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'):
10 - cflags.append('-fasm-blocks')
12 if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
13 if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
14 cflags.append('-mdynamic-no-pic')
16 # mdynamic-no-pic by default for executable and possibly static lib
19 - if self._Test('GCC_ENABLE_PASCAL_STRINGS', 'YES', default='YES'):
20 - cflags.append('-mpascal-strings')
22 self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
24 if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
26 # TODO: Supporting fat binaries will be annoying.
27 self._WarnUnimplemented('ARCHS')
29 - cflags.append('-arch ' + archs[0])
31 if archs[0] in ('i386', 'x86_64'):
32 if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
34 # TODO: Supporting fat binaries will be annoying.
35 self._WarnUnimplemented('ARCHS')
37 - ldflags.append('-arch ' + archs[0])
39 # Xcode adds the product directory by default.
40 ldflags.append('-L' + product_dir)