Use --bundled-clang=5.0.1 by default (instead of 4.0.0)

This commit is contained in:
Fangrui Song 2017-12-27 19:31:42 -08:00
parent f85659713e
commit 8592df7cf6
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ void RunIndexTests(const std::string& filter_path) {
// Index tests change based on the version of clang used.
static constexpr const char* kRequiredClangVersion =
"clang version 4.0.0 (tags/RELEASE_400/final)";
"clang version 5.0.1 (tags/RELEASE_501/final)";
if (GetClangVersion() != kRequiredClangVersion) {
std::cerr << "Index tests must be run using clang version \""
<< kRequiredClangVersion << "\" (cquery is running with \""

View File

@ -80,7 +80,7 @@ def options(opt):
help='enable use of clang from the system')
grp.add_option('--use-clang-cxx', dest='use_clang_cxx', default=False, action='store_true',
help='use clang C++ API')
grp.add_option('--bundled-clang', dest='bundled_clang', default='4.0.0',
grp.add_option('--bundled-clang', dest='bundled_clang', default='5.0.1',
help='bundled clang version, downloaded from https://releases.llvm.org/ , e.g. 4.0.0 5.0.1')
grp.add_option('--llvm-config', dest='llvm_config', default='llvm-config',
help='specify path to llvm-config for automatic configuration [default: %default]')