Skip to content

Commit

Permalink
combine the conditional compilation block
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios authored and CelticMinstrel committed Sep 16, 2024
1 parent 71416f6 commit 33a2df5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tools/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ bool init_action_log(std::string command, std::string file) {
log_file = file;
try {
Element root_element("actions");
#if defined(GIT_REVISION) && defined(GIT_TAG)
#ifndef MSBUILD_GITREV
root_element.SetAttribute("SHA", GIT_REVISION);
root_element.SetAttribute("Tag", GIT_TAG);
#endif
#if defined(GIT_STATUS) && defined(GIT_REPO)
root_element.SetAttribute("Status", GIT_STATUS);
root_element.SetAttribute("Repo", GIT_REPO);
#endif
Expand Down

0 comments on commit 33a2df5

Please sign in to comment.