1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00
This commit is contained in:
Rui Ueyama 2021-03-13 20:28:08 +09:00
parent 240b3d316b
commit 42056c2197
2 changed files with 1 additions and 3 deletions

View File

@ -279,6 +279,7 @@ void parse_nonpositional_args(std::span<std::string_view> args,
config.print_perf = true;
} else if (read_flag(args, "print-stats")) {
config.print_stats = true;
Counter::enabled = true;
} else if (read_z_flag(args, "now")) {
config.z_now = true;
} else if (read_z_flag(args, "execstack")) {

View File

@ -1067,9 +1067,6 @@ int main(int argc, char **argv) {
on_complete = fork_child();
}
if (config.print_stats)
Counter::enabled = true;
for (std::string_view arg : config.trace_symbol)
Symbol::intern(arg)->traced = true;