Skip to content

Commit

Permalink
just add # recompile in color mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Oct 21, 2024
1 parent f3bd1e9 commit 5cf51be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2565,14 +2565,8 @@ static void record_precompile_statement(jl_method_instance_t *mi, double compila
jl_printf(s_precompile, "precompile(");
jl_static_show(s_precompile, mi->specTypes);
jl_printf(s_precompile, ")");
if (is_recompile) {
if (s_precompile == JL_STDERR && jl_options.color != JL_OPTIONS_COLOR_OFF) {
jl_printf(s_precompile, "\e[0m");
}
else {
jl_printf(s_precompile, " # recompile");
}
}
if (is_recompile)
jl_printf(s_precompile, " # recompile\e[0m");
jl_printf(s_precompile, "\n");
if (s_precompile != JL_STDERR)
ios_flush(&f_precompile);
Expand Down

0 comments on commit 5cf51be

Please sign in to comment.