From 420d2baec25fbb172888e9576ecff44413bc23d2 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 19 Oct 2023 16:21:14 +0200 Subject: [PATCH] Revert "DaemonManager.cpp: disable JIT on macOS ARM" This reverts commit 6c4a8fb81938b5067e23c819393ad272aaa01537. --- src/daemon/DaemonManager.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 237ac545de..8dd31157ac 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -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)));