Return detected arch flags from CFLAGS
(self)
| 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 [] |
no test coverage detected