Skip to content

Commit

Permalink
Merge PIVX-Project#382: Gitian hack so gitian Mac builds notify user …
Browse files Browse the repository at this point in the history
…about incompatibility on High Sierra

a2efe3d Gitian Hack (Jon Spock)

Tree-SHA512: 99efdb6894beb9546474bc918c525df3987a5f60a25a92c7f437bec272cb0034fc4e89417a013890cd5d46abfcda5e1652807185f8d252a2174236f66ef0cfa5
  • Loading branch information
Mrs-X committed Nov 11, 2017
2 parents 559492a + a2efe3d commit 4a412d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/qt/pivx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,18 @@ int main(int argc, char* argv[])
initTranslations(qtTranslatorBase, qtTranslator, translatorBase, translator);
uiInterface.Translate.connect(Translate);

#ifdef Q_OS_MAC
#if __clang_major__ < 4
QString s = QSysInfo::kernelVersion();
std::string ver_info = s.toStdString();
// ver_info will be like 17.2.0 for High Sierra. Check if true and exit if build via cross-compile
if (ver_info[0] == '1' && ver_info[1] == '7') {
QMessageBox::critical(0, "Unsupported", BitcoinGUI::tr("High Sierra not supported with this build") + QString("\n\n"));
::exit(1);
}
#endif
#endif

// Show help message immediately after parsing command-line options (for "-lang") and setting locale,
// but before showing splash screen.
if (mapArgs.count("-?") || mapArgs.count("-help") || mapArgs.count("-version")) {
Expand Down

0 comments on commit 4a412d4

Please sign in to comment.