-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1692: do not error in build if git folder is not available #1693
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ if (${vt_doxygen_enabled}) | |
set(doxygen_out ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
|
||
set(DOXYGEN_PROJECT_NAME "vt") | ||
set(VERSION_MAJOR "1") | ||
set(VERSION_MINOR "0") | ||
set(VERSION_PATCH "0") | ||
set(VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") | ||
set(VERSION_MINOR "${PROJECT_VERSION_MINOR}") | ||
set(VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not directly related to the PR but I thought I might as well do it with the versioning consistency, but these will now read from the cmake file |
||
set(DOXYGEN_INPUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/") | ||
set(DOXYGEN_CHECKPOINT_SHARED_DOCS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/checkpoint/docs/shared") | ||
set(DOXYGEN_CHECKPOINT_EXAMPLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/checkpoint/examples") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ void Runtime::printStartupBanner() { | |
#endif | ||
|
||
std::string dirty = ""; | ||
if (strncmp(vt_git_clean_status.c_str(), "DIRTY", 5) == 0) { | ||
if (vt_git_clean_status == "DIRTY") { | ||
dirty = red + std::string("*dirty*") + reset; | ||
} | ||
|
||
|
@@ -174,29 +174,29 @@ void Runtime::printStartupBanner() { | |
auto const version = std::to_string(std::get<0>(version_tuple)); | ||
auto const subversion = std::to_string(std::get<1>(version_tuple)); | ||
|
||
auto f1 = fmt::format("{} {}{}\n", reg(init), reg(mode), emph(mode_type + thd)); | ||
auto f2a = fmt::format("{}Program: {} ({})\n", green, | ||
emph(getAppConfig()->prog_name), emph(getAppConfig()->argv_prog_name)); | ||
auto f2b = fmt::format("{}Running on: {}\n", green, emph(all_node)); | ||
auto f3 = fmt::format("{}Machine Hostname: {}\n", green, emph(hostname)); | ||
auto f3a = fmt::format("{}MPI Version: {}.{}\n", green, emph(version), emph(subversion)); | ||
auto f3b = fmt::format("{}MPI Max tag: {}\n", green, emph(max_tag_str)); | ||
|
||
auto f4 = fmt::format("{}Build SHA: {}\n", green, emph(vt_git_sha1)); | ||
auto f5 = fmt::format("{}Build Ref: {}\n", green, emph(vt_git_refspec)); | ||
auto f6 = fmt::format("{}Description: {} {}\n", green, emph(vt_git_description), dirty); | ||
auto f7 = fmt::format("{}Compile-time Features Enabled:{}\n", green, reset); | ||
|
||
fmt::print("{}{}{}", vt_pre, f1, reset); | ||
fmt::print("{}{}{}", vt_pre, f2a, reset); | ||
fmt::print("{}{}{}", vt_pre, f2b, reset); | ||
fmt::print("{}{}{}", vt_pre, f3, reset); | ||
fmt::print("{}{}{}", vt_pre, f3a, reset); | ||
fmt::print("{}{}{}", vt_pre, f3b, reset); | ||
fmt::print("{}{}{}", vt_pre, f4, reset); | ||
fmt::print("{}{}{}", vt_pre, f5, reset); | ||
fmt::print("{}{}{}", vt_pre, f6, reset); | ||
fmt::print("{}{}{}", vt_pre, f7, reset); | ||
auto vt_version_string = fmt::format("{}.{}.{}", vt_version_major, vt_version_minor, vt_version_patch); | ||
std::array< std::string, 11 > info_lines = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made it easier to add lines to the banner. When we eventually switch to C++17, we won't need to give the number of lines to std::array, it will be able to use CTAD to deduce |
||
fmt::format("{}Version: {}\n", green, emph(vt_version_string)), | ||
|
||
fmt::format("{} {}{}\n", reg(init), reg(mode), emph(mode_type + thd)), | ||
fmt::format("{}Program: {} ({})\n", green, | ||
emph(getAppConfig()->prog_name), emph(getAppConfig()->argv_prog_name)), | ||
fmt::format("{}Running on: {}\n", green, emph(all_node)), | ||
fmt::format("{}Machine Hostname: {}\n", green, emph(hostname)), | ||
fmt::format("{}MPI Version: {}.{}\n", green, emph(version), emph(subversion)), | ||
fmt::format("{}MPI Max tag: {}\n", green, emph(max_tag_str)), | ||
|
||
fmt::format("{}Build SHA: {}\n", green, emph(vt_git_sha1)), | ||
fmt::format("{}Build Ref: {}\n", green, emph(vt_git_refspec)), | ||
fmt::format("{}Description: {} {}\n", green, emph(vt_git_description), dirty), | ||
fmt::format("{}Compile-time Features Enabled:{}\n", green, reset) | ||
}; | ||
|
||
for (auto &&line: info_lines) | ||
{ | ||
fmt::print("{}{}{}", vt_pre, line, reset); | ||
} | ||
|
||
for (size_t i = 0; i < features.size(); i++) { | ||
fmt::print("{}\t{}\n", vt_pre, emph(features.at(i))); | ||
} | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version number changes should only be done in the VERSION file now