MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_clang_version

Function get_clang_version

tools/shared.py:228–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227@memoize
228def get_clang_version():
229 if not os.path.exists(CLANG_CC):
230 exit_with_error('clang executable not found at `%s`' % CLANG_CC)
231 proc = check_call([CLANG_CC, '--version'], stdout=PIPE)
232 m = re.search(r'[Vv]ersion\s+(\d+\.\d+)', proc.stdout)
233 return m and m.group(1)
234
235
236def check_llvm_version():

Callers 1

check_llvm_versionFunction · 0.85

Calls 3

exit_with_errorFunction · 0.85
check_callFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected