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

Method _cc_normalize_win

numpy/distutils/ccompiler_opt.py:1216–1224  ·  view source on GitHub ↗
(self, flags)

Source from the content-addressed store, hash-verified

1214 r"^(/arch|/Qx:)"
1215 )
1216 def _cc_normalize_win(self, flags):
1217 for i, f in enumerate(reversed(flags)):
1218 if not re.match(self._cc_normalize_win_mrgx, f):
1219 continue
1220 i += 1
1221 return list(filter(
1222 self._cc_normalize_win_frgx.search, flags[:-i]
1223 )) + flags[-i:]
1224 return flags
1225
1226class _Feature:
1227 """A helper class for `CCompilerOpt` that managing CPU features.

Callers 1

cc_normalize_flagsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected