From 33a2df514535b93b865f392dd3b3b8d8183192f2 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 15 Sep 2024 09:40:27 -0500 Subject: [PATCH] combine the conditional compilation block --- src/tools/replay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tools/replay.cpp b/src/tools/replay.cpp index 8c297e51c..83622a939 100644 --- a/src/tools/replay.cpp +++ b/src/tools/replay.cpp @@ -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