mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Merge pull request #4157
6c4a8fb
DaemonManager.cpp: disable JIT on macOS ARM (selsta)
This commit is contained in:
commit
483b825a2f
1 changed files with 11 additions and 2 deletions
|
@ -117,8 +117,17 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
|
||||||
connect(m_daemon.get(), SIGNAL(readyReadStandardOutput()), this, SLOT(printOutput()));
|
connect(m_daemon.get(), SIGNAL(readyReadStandardOutput()), this, SLOT(printOutput()));
|
||||||
connect(m_daemon.get(), SIGNAL(readyReadStandardError()), this, SLOT(printError()));
|
connect(m_daemon.get(), SIGNAL(readyReadStandardError()), this, SLOT(printError()));
|
||||||
|
|
||||||
// Start monerod
|
#if defined(Q_OS_MAC) && defined(__aarch64__)
|
||||||
bool started = m_daemon->startDetached(m_monerod, arguments);
|
// RandomX crashes with JIT enabled when started as a detached process, disable it for now
|
||||||
|
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||||
|
env.insert("MONERO_RANDOMX_UMASK", "8");
|
||||||
|
m_daemon->setProcessEnvironment(env);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
m_daemon->setProgram(m_monerod);
|
||||||
|
m_daemon->setArguments(arguments);
|
||||||
|
bool started = m_daemon->startDetached();
|
||||||
|
|
||||||
|
|
||||||
// add state changed listener
|
// add state changed listener
|
||||||
connect(m_daemon.get(), SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(stateChanged(QProcess::ProcessState)));
|
connect(m_daemon.get(), SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(stateChanged(QProcess::ProcessState)));
|
||||||
|
|
Loading…
Reference in a new issue