Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gyp / no-darwin-cflags.patch
blob798d0f0b16d076205372e7a2bb47f270bf64a08c
1 Index: gyp/pylib/gyp/xcode_emulation.py
2 ===================================================================
3 --- gyp/pylib/gyp/xcode_emulation.py
4 +++ gyp/pylib/gyp/xcode_emulation.py
5 @@ -483,9 +483,6 @@
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')
15 @@ -495,9 +492,6 @@
16 # mdynamic-no-pic by default for executable and possibly static lib
17 # according to mento
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'):
25 @@ -553,7 +541,6 @@
26 # TODO: Supporting fat binaries will be annoying.
27 self._WarnUnimplemented('ARCHS')
28 archs = ['i386']
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'):
33 @@ -811,7 +798,6 @@
34 # TODO: Supporting fat binaries will be annoying.
35 self._WarnUnimplemented('ARCHS')
36 archs = ['i386']
37 - ldflags.append('-arch ' + archs[0])
39 # Xcode adds the product directory by default.
40 ldflags.append('-L' + product_dir)