diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dbe79398..bab9ef535 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/main/main.cpp b/main/main.cpp index 958103da1..a1d6145ee 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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 @@ -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";