MCPcopy Create free account
hub / github.com/numpy/numpy / _c_arch_flags

Method _c_arch_flags

numpy/distutils/fcompiler/gnu.py:233–244  ·  view source on GitHub ↗

Return detected arch flags from CFLAGS

(self)

Source from the content-addressed store, hash-verified

231 return opt
232
233 def _c_arch_flags(self):
234 """ Return detected arch flags from CFLAGS """
235 import sysconfig
236 try:
237 cflags = sysconfig.get_config_vars()['CFLAGS']
238 except KeyError:
239 return []
240 arch_re = re.compile(r"-arch\s+(\w+)")
241 arch_flags = []
242 for arch in arch_re.findall(cflags):
243 arch_flags += ['-arch', arch]
244 return arch_flags
245
246 def get_flags_arch(self):
247 return []

Callers 1

_universal_flagsMethod · 0.80

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected