Fix compilation on macOS aarch64 (#6152)

* Fix compilation on macOS aarch64
- Bumps rpmalloc submodule to fix assembly compilation, fix `rpmalloc_thread_finalize()` API change
- Adds aarch64 "/opt" Homebrew prefix (reuse `APPLE_PREFIX`)
* Add detection for non-Intel architectures
This commit is contained in:
Tres Finocchiaro
2021-09-22 09:28:16 -04:00
committed by GitHub
parent 8a9a2fae62
commit 131b273894
7 changed files with 92 additions and 19 deletions

View File

@@ -32,7 +32,7 @@
#include "AudioEngine.h"
#include "ThreadableJob.h"
#if defined(LMMS_HOST_X86) || defined(LMMS_HOST_X86_64)
#if __SSE__
#include <xmmintrin.h>
#endif
@@ -98,7 +98,7 @@ void AudioEngineWorkerThread::JobQueue::wait()
{
while (m_itemsDone < m_writeIndex)
{
#if defined(LMMS_HOST_X86) || defined(LMMS_HOST_X86_64)
#ifdef __SSE__
_mm_pause();
#endif
}

View File

@@ -53,7 +53,7 @@ MemoryManager::ThreadGuard::ThreadGuard()
MemoryManager::ThreadGuard::~ThreadGuard()
{
if (--thread_guard_depth == 0) {
rpmalloc_thread_finalize();
rpmalloc_thread_finalize(true);
}
}

View File

@@ -8,6 +8,10 @@
#cmakedefine LMMS_HOST_X86
#cmakedefine LMMS_HOST_X86_64
#cmakedefine LMMS_HOST_ARM32
#cmakedefine LMMS_HOST_ARM64
#cmakedefine LMMS_HOST_RISCV32
#cmakedefine LMMS_HOST_RISCV64
#cmakedefine LMMS_HAVE_ALSA
#cmakedefine LMMS_HAVE_FLUIDSYNTH