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

Function check_llvm_version

tools/shared.py:236–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235
236def check_llvm_version():
237 actual = get_clang_version()
238 if actual.startswith('%d.' % EXPECTED_LLVM_VERSION):
239 return True
240 # When running in CI environment we also silently allow the next major
241 # version of LLVM here so that new versions of LLVM can be rolled in
242 # without disruption.
243 if 'BUILDBOT_BUILDNUMBER' in os.environ:
244 if actual.startswith('%d.' % (EXPECTED_LLVM_VERSION + 1)):
245 return True
246 diagnostics.warning('version-check', 'LLVM version for clang executable "%s" appears incorrect (seeing "%s", expected "%s")', CLANG_CC, actual, EXPECTED_LLVM_VERSION)
247 return False
248
249
250def get_clang_targets():

Callers 1

perform_sanity_checksFunction · 0.85

Calls 2

get_clang_versionFunction · 0.85
warningMethod · 0.80

Tested by

no test coverage detected