Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ bool compiler_execute(CompilerSettings *settings) {
}

const std::string compilation_metrics_file = G->settings().compilation_metrics_file.get();
const std::string image_version = G->settings().build_timestamp.get();
G->finish();
auto profiler_stats = collect_profiler_stats();
G->stats.update_memory_stats();
Expand All @@ -387,6 +388,9 @@ bool compiler_execute(CompilerSettings *settings) {
std::cerr << std::endl;
std::cerr << "Compile stats:" << std::endl;
G->stats.write_to(std::cerr);
if (G->is_output_mode_k2()) {
std::cerr << "Image version: " << image_version << std::endl;
}
}
if (!compilation_metrics_file.empty()) {
G->stats.profiler_stats = std::move(profiler_stats);
Expand Down
Loading