diff --git a/src/qt/pivx.cpp b/src/qt/pivx.cpp index 7871c79701bec..ce04affad99db 100644 --- a/src/qt/pivx.cpp +++ b/src/qt/pivx.cpp @@ -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")) {