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

Method ver_flags

numpy/distutils/ccompiler_opt.py:1162–1169  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1160 )
1161 def _cc_normalize_unix(self, flags):
1162 def ver_flags(f):
1163 # arch ver subflag
1164 # -march=armv8.2-a+fp16fml
1165 tokens = f.split('+')
1166 ver = float('0' + ''.join(
1167 re.findall(self._cc_normalize_arch_ver, tokens[0])
1168 ))
1169 return ver, tokens[0], tokens[1:]
1170
1171 if len(flags) <= 1:
1172 return flags

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected