crashhandler: exclude GITHASH if git wasn't found

Allows compilation in environments where Git may be missing.
This commit is contained in:
itsmattkc
2020-05-27 02:51:10 +10:00
parent 0c7b3e1761
commit da04777a25
+4 -1
View File
@@ -49,7 +49,10 @@ void crash_handler(int sig)
output.open(QFile::WriteOnly);
QTextStream ostream(&output);
ostream << "Version: " << GITHASH << "\nSignal: " << sig << "\n\n";
#ifdef GITHASH
ostream << "Version: " << GITHASH << "\n";
#endif
ostream << "Signal: " << sig << "\n\n";
#if defined(Q_OS_WINDOWS)
// Use Windows stackwalk API