Skip to content

Commit

Permalink
Update engine_info to SFMX_date_gitsha
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim26 authored Aug 15, 2023
1 parent ca864f9 commit 64937b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ class Logger {

string engine_info(bool to_uci) {
stringstream ss;
ss << "Stockfish " << version << setfill('0');
ss << "SFMX" << setfill('0');

if constexpr (version == "dev")
{
ss << "-";
ss << "_";
#ifdef GIT_DATE
ss << stringify(GIT_DATE);
#else
Expand All @@ -170,7 +170,7 @@ string engine_info(bool to_uci) {
ss << year << setw(2) << setfill('0') << (1 + months.find(month) / 4) << setw(2) << setfill('0') << day;
#endif

ss << "-";
ss << "_";

#ifdef GIT_SHA
ss << stringify(GIT_SHA);
Expand Down

0 comments on commit 64937b7

Please sign in to comment.