diff options
| author | OatmealDome <julian@oatmealdome.me> | 2022-06-01 22:51:10 -0400 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2022-06-01 22:57:56 -0400 |
| commit | 1cb3058abe827470a0aba458cc6c3cb0cc884763 (patch) | |
| tree | 8a221ca1fd816a389a7ef11834d8db46451ff565 /Source/Core/Common/MemoryUtil.cpp | |
| parent | 6e2febd4045c368e9f4c8dd5f751b1d6c6af14ec (diff) | |
MemoryUtil: Remove __builtin_available for macOS 10.14
Diffstat (limited to 'Source/Core/Common/MemoryUtil.cpp')
| -rw-r--r-- | Source/Core/Common/MemoryUtil.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp index 858135bc0e..f94af85822 100644 --- a/Source/Core/Common/MemoryUtil.cpp +++ b/Source/Core/Common/MemoryUtil.cpp @@ -41,11 +41,7 @@ void* AllocateExecutableMemory(size_t size) #else int map_flags = MAP_ANON | MAP_PRIVATE; #if defined(__APPLE__) - // This check is in place to prepare for x86_64 MAP_JIT support. While MAP_JIT did exist - // prior to 10.14, it had restrictions on the number of JIT allocations that were removed - // in 10.14. - if (__builtin_available(macOS 10.14, *)) - map_flags |= MAP_JIT; + map_flags |= MAP_JIT; #endif void* ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE | PROT_EXEC, map_flags, -1, 0); if (ptr == MAP_FAILED) |
