1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

pcre2: Fix support for macOS < 11.0 by making JIT conditional at runtime

This commit is contained in:
Rémi Verschelde
2022-05-18 11:41:00 +02:00
parent 5631b59e21
commit 24a06a6d4a
3 changed files with 37 additions and 0 deletions

View File

@@ -152,6 +152,9 @@ static SLJIT_INLINE void apple_update_wx_flags(sljit_s32 enable_exec)
{
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 110000
pthread_jit_write_protect_np(enable_exec);
#elif defined(__clang__)
if (__builtin_available(macOS 11.0, *))
pthread_jit_write_protect_np(enable_exec);
#else
#error "Must target Big Sur or newer"
#endif /* BigSur */