Skip to content

Commit

Permalink
Merge pull request #22 from AnyDSL/no_color
Browse files Browse the repository at this point in the history
Propagate no color option when emitting thorin IR.
  • Loading branch information
Hugobros3 authored Jun 24, 2024
2 parents 7598431 + 1adb3bc commit 2263837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void usage() {
"options:\n"
" -h --help Displays this message\n"
" --version Displays the version number\n"
" --no-color Disables colors in error messages\n"
" --no-color Disables colors in messages\n"
" -Wall --enable-all-warnings Enables all warnings\n"
" -Werror --warnings-as-errors Treat warnings as errors\n"
" --max-errors <n> Sets the maximum number of error messages (unlimited by default)\n"
Expand Down Expand Up @@ -344,7 +344,7 @@ int main(int argc, char** argv) {
if (opts.opt_level > 1 || opts.emit_c || opts.emit_llvm)
thorin.opt();
if (opts.emit_thorin)
thorin.world().dump_scoped();
thorin.world().dump_scoped(!opts.no_color);
if (opts.emit_json || opts.emit_c || opts.emit_llvm) {
auto emit_to_file = [&] (thorin::CodeGen& cg) {
auto name = opts.module_name + cg.file_ext();
Expand Down

0 comments on commit 2263837

Please sign in to comment.