Skip to content

Commit

Permalink
info about build properties- use_rtti, debug level, portable was adde…
Browse files Browse the repository at this point in the history
…d to log(#262)
  • Loading branch information
RoyBenMoshe committed Dec 9, 2022
1 parent e3c1b51 commit 6740bec
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions util/build_version.cc.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,24 @@ static void AddProperty(std::unordered_map<std::string, std::string> *props, con
}

static std::unordered_map<std::string, std::string>* LoadPropertiesSet(std::string p) {
auto * properties = new std::unordered_map<std::string, std::string>();
auto * debug_properties = new std::unordered_map<std::string, std::string>();
AddProperty(properties, speedb_build_git_sha);
AddProperty(properties, speedb_build_git_tag);
AddProperty(properties, speedb_build_date);
if (SPDB_BUILD_TAG[0] == '@') {
AddProperty(properties, "?");
} else {
AddProperty(properties, speedb_build_tag);
}
AddProperty(debug_properties, use_rtti);
AddProperty(debug_properties, debug_level);
AddProperty(debug_properties, portable);
if(p == "properties")
if(p == "properties"){
auto * properties = new std::unordered_map<std::string, std::string>();
AddProperty(properties, speedb_build_git_sha);
AddProperty(properties, speedb_build_git_tag);
AddProperty(properties, speedb_build_date);
if (SPDB_BUILD_TAG[0] == '@') {
AddProperty(properties, "?");
} else {
AddProperty(properties, speedb_build_tag);
}
return properties;
else
} else {
auto * debug_properties = new std::unordered_map<std::string, std::string>();
AddProperty(debug_properties, use_rtti);
AddProperty(debug_properties, debug_level);
AddProperty(debug_properties, portable);
return debug_properties;
}
}

const std::unordered_map<std::string, std::string>& GetRocksBuildProperties() {
Expand Down

0 comments on commit 6740bec

Please sign in to comment.