• Home
  • Raw
  • Download

Lines Matching +full:cross +full:- +full:spawn

15 # like "-arch" or "-isdkroot", that may need customization for
48 # the file exists, we have a shot at spawn working
74 return fp.read().decode('utf-8').strip() if not os.system(cmd) else None
80 or _read_output("/usr/bin/xcrun -find %s" % (toolname,))
99 f = open('/System/Library/CoreServices/SystemVersion.plist', encoding="utf-8")
138 # This is needed for higher-level cross-platform tests of get_platform.
160 contents = _read_output('%s -c -E -v - </dev/null' % (cc,), True)
172 _cache_default_sysroot = line[:-12]
182 # builds, in particular -isysroot and -arch arguments to the compiler. This
203 # (or rather Xcode) releases. With older releases (up-to 10.5)
209 # Xcode releases. Up to Xcode 4 it was possible to use 'gcc-4.2'
211 # gcc-4.2 is either not present, or a copy of 'llvm-gcc' that
236 # Compiler is GCC, check if it is LLVM-GCC
237 data = _read_output("'%s' --version"
239 if data and 'llvm-gcc' in data:
240 # Found LLVM-GCC, fall back to clang
267 flags = re.sub(r'-arch\s+\w+\s', ' ', flags, flags=re.ASCII)
268 flags = re.sub(r'-isysroot\s*\S+', ' ', flags)
276 # Different Xcode releases support different sets for '-arch'
280 # This code automatically removes '-arch ppc' and '-arch ppc64'
283 # 32-bit installer on the python.org website.
289 if re.search(r'-arch\s+ppc', _config_vars['CFLAGS']) is not None:
294 """'%s' -c -arch ppc -x c -o /dev/null /dev/null 2>/dev/null"""
300 # PPC support and remove the related '-arch' flags from each
308 flags = re.sub(r'-arch\s+ppc\w*\s', ' ', flags)
322 if cv in _config_vars and '-arch' in _config_vars[cv]:
324 flags = re.sub(r'-arch\s+\w+\s', ' ', flags)
338 # full-blown Xcode install since the CLT packages do not
344 m = re.search(r'-isysroot\s*(\S+)', cflags)
352 flags = re.sub(r'-isysroot\s*\S+(?:\s|$)', ' ', flags)
360 This function will strip '-isysroot PATH' and '-arch ARCH' from the
363 This is needed because '-arch ARCH' adds another architecture to the
365 barf if multiple '-isysroot' arguments are present.
372 # OSX before 10.4.0, these don't support -arch and -isysroot at
376 stripArch = '-arch' in cc_args
377 stripSysroot = any(arg for arg in cc_args if arg.startswith('-isysroot'))
382 index = compiler_so.index('-arch')
389 # Look for "-arch arm64" and drop that
391 if compiler_so[idx] == '-arch' and compiler_so[idx+1] == "arm64":
395 # User specified different -arch flags in the environ,
401 indices = [i for i,x in enumerate(compiler_so) if x.startswith('-isysroot')]
405 if compiler_so[index] == '-isysroot':
409 # It's '-isysroot/some/path' in one arg
417 indices = [i for i,x in enumerate(cc_args) if x.startswith('-isysroot')]
420 indices = [i for i,x in enumerate(compiler_so) if x.startswith('-isysroot')]
423 if argvar[idx] == '-isysroot':
427 sysroot = argvar[idx][len('-isysroot'):]
464 # On Mac OS X before 10.4, check if -arch and -isysroot
519 # Otherwise, distutils may consider this a cross-compiling
532 if (macrelease >= (10, 4)) and '-arch' in cflags.strip():
538 archs = re.findall(r'-arch\s+(\S+)', cflags)
561 # 32-bit variant, even if the executable architecture is
562 # the 64-bit variant