Skip to content

Commit

Permalink
Merge pull request #4229
Browse files Browse the repository at this point in the history
420d2ba Revert 'DaemonManager.cpp: disable JIT on macOS ARM' (selsta)
  • Loading branch information
luigi1111 committed Nov 6, 2023
2 parents 7a754a4 + 420d2ba commit 99d2884
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/daemon/DaemonManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,8 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
connect(m_daemon.get(), SIGNAL(readyReadStandardOutput()), this, SLOT(printOutput()));
connect(m_daemon.get(), SIGNAL(readyReadStandardError()), this, SLOT(printError()));

#if defined(Q_OS_MAC) && defined(__aarch64__)
// 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();

// Start monerod
bool started = m_daemon->startDetached(m_monerod, arguments);

// add state changed listener
connect(m_daemon.get(), SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(stateChanged(QProcess::ProcessState)));
Expand Down

0 comments on commit 99d2884

Please sign in to comment.