mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Update LLVM (and llvm-bazel). (#550)
This picks up a newer version of LLVM and the LLVM Bazel integration. The big change here is that we can configure the LLVM targets that are built, which allows us to dramatically reduce the build costs by focusing on a couple of CPUs for the time being. There are a few API updates needed as well. This also rotates the cache version so we start with a clean Bazel cache from here. Otherwise we'd potentially pay the cost of carrying around stale bits of LLVM endlessly.
This commit is contained in:
@@ -11,8 +11,9 @@ namespace ct = ::clang::tooling;
|
||||
|
||||
auto main(int argc, const char** argv) -> int {
|
||||
llvm::cl::OptionCategory category("C++ refactoring options");
|
||||
ct::CommonOptionsParser op(argc, argv, category);
|
||||
ct::RefactoringTool tool(op.getCompilations(), op.getSourcePathList());
|
||||
auto parser = ct::CommonOptionsParser::create(argc, argv, category);
|
||||
ct::RefactoringTool tool(parser->getCompilations(),
|
||||
parser->getSourcePathList());
|
||||
|
||||
// Set up AST matcher callbacks.
|
||||
cam::MatchFinder finder;
|
||||
|
||||
Reference in New Issue
Block a user