Skip to content

Commit

Permalink
update the copyright message to show ARM/Intel information
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskf committed Apr 15, 2024
1 parent e1eb652 commit 49b264e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ endif()
# The version number.
set (iqtree_VERSION_MAJOR 2)
set (iqtree_VERSION_MINOR 3)
set (iqtree_VERSION_PATCH ".2")
set (iqtree_VERSION_PATCH ".3")

option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)

Expand Down
17 changes: 16 additions & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ inline void separator(ostream &out, int type = 0) {


void printCopyright(ostream &out) {
string osname, pre, post;
osname = getOSName();
// change the "Mac OS X" to "MacOS"
size_t osx_pos = osname.find("Mac OS X");
if (osx_pos != string::npos) {
pre = osname.substr(0,osx_pos);
post = osname.substr(osx_pos+8);
osname = pre + "MacOS" + post;
}

#ifdef IQ_TREE
out << "IQ-TREE";
#ifdef _IQTREE_MPI
Expand All @@ -104,7 +114,12 @@ void printCopyright(ostream &out) {
out << "PDA - Phylogenetic Diversity Analyzer version ";
#endif
out << iqtree_VERSION_MAJOR << "." << iqtree_VERSION_MINOR << iqtree_VERSION_PATCH << " COVID-edition";
out << " for " << getOSName();
out << " for " << osname;
#if defined(__ARM_NEON)
out << " ARM";
#else
cout << " Intel";
#endif
out << " built " << __DATE__;
#if defined DEBUG
out << " - debug mode";
Expand Down

0 comments on commit 49b264e

Please sign in to comment.