mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 14:54:56 +01:00
turn off tracing by default, change golden (#381)
* turn off tracing by default, change golden * Update executable_semantics/main.cpp Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * Update executable_semantics/main.cpp Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * merge with trunk, update goldens Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Jon Meow
parent
ced98ef021
commit
7c4fcd3fa5
@@ -16,13 +16,13 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
using llvm::cl::desc;
|
||||
using llvm::cl::opt;
|
||||
opt<bool> quietOption("quiet", desc("Disable tracing"));
|
||||
opt<bool> trace_option("trace", desc("Enable tracing"));
|
||||
opt<std::string> inputFileName(llvm::cl::Positional, desc("<input file>"),
|
||||
llvm::cl::Required);
|
||||
|
||||
llvm::cl::ParseCommandLineOptions(argc, argv);
|
||||
if (quietOption) {
|
||||
Carbon::tracing_output = false;
|
||||
if (trace_option) {
|
||||
Carbon::tracing_output = true;
|
||||
}
|
||||
|
||||
std::variant<Carbon::AST, Carbon::SyntaxErrorCode> astOrError =
|
||||
|
||||
Reference in New Issue
Block a user