Commit e44119c512d29b9c1718ca92e7a293431e8865ae

Authored by Wiebe Cazemier
1 parent 67497fb4

Show SSE support in start message

Showing 1 changed file with 10 additions and 2 deletions
main.cpp
... ... @@ -82,10 +82,18 @@ int main(int argc, char *argv[])
82 82 Logger *logger = Logger::getInstance();
83 83 mainApp = MainApp::getMainApp();
84 84 check<std::runtime_error>(register_signal_handers());
  85 +
  86 + std::string sse = "without SSE support";
  87 +#ifdef __SSE2__
  88 + sse = "with SSE2 support";
  89 +#endif
  90 +#ifdef __SSE4_2__
  91 + sse = "with SSE4.2 support";
  92 +#endif
85 93 #ifdef NDEBUG
86   - logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, release build.", VERSION);
  94 + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, release build.", VERSION, sse.c_str());
87 95 #else
88   - logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, debug build.", VERSION);
  96 + logger->logf(LOG_NOTICE, "Starting FlashMQ version %s, debug build %s.", VERSION, sse.c_str());
89 97 #endif
90 98 mainApp->start();
91 99 }
... ...