ResultReport: RUGNUX_GIT has no trailing space when the build knows no commit date
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SVmAWnzCmRKAXVUCdc4iNi
This commit is contained in:
@@ -442,8 +442,10 @@ ReportDocument BuildReportDocument(const std::string &output_prefix,
|
||||
// "-dirty" suffix marks uncommitted changes - and the compiler flags it was built with.
|
||||
// Both are provenance the version string does not carry: two builds of one commit can
|
||||
// differ by flags alone, and -march moves the CPU-bound results.
|
||||
if (!jfjoch_git_sha1().empty())
|
||||
Add(h, KeyText("RUGNUX_GIT", jfjoch_git_sha1() + " " + jfjoch_git_date()));
|
||||
if (!jfjoch_git_sha1().empty()) {
|
||||
const std::string git_date = jfjoch_git_date();
|
||||
Add(h, KeyText("RUGNUX_GIT", git_date.empty() ? jfjoch_git_sha1() : jfjoch_git_sha1() + " " + git_date));
|
||||
}
|
||||
Add(h, KeyText("BUILD_CXX_FLAGS",
|
||||
jfjoch_build_cxx_flags().empty() ? "NONE" : jfjoch_build_cxx_flags()));
|
||||
Add(h, KeyText("DATE", time_UTC(std::chrono::system_clock::now())));
|
||||
|
||||
Reference in New Issue
Block a user