()
| 234 | |
| 235 | |
| 236 | def 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 | |
| 250 | def get_clang_targets(): |
no test coverage detected