diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake index 5b081a2784add..51012eb259c1e 100644 --- a/Source/cmake/WebKitCompilerFlags.cmake +++ b/Source/cmake/WebKitCompilerFlags.cmake @@ -230,12 +230,21 @@ if (COMPILER_IS_GCC_OR_CLANG) WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-pipe) if (USE_BUN_JSC_ADDITIONS) - WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wl,-u,_WTFTimer__create - -Wl,-u,_WTFTimer__update - -Wl,-u,_WTFTimer__deinit - -Wl,-u,_WTFTimer__isActive - -Wl,-u,_WTFTimer__secondsUntilTimer - -Wl,-u,_WTFTimer__cancel) + if (APPLE) + WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wl,-U,_WTFTimer__create + -Wl,-U,_WTFTimer__update + -Wl,-U,_WTFTimer__deinit + -Wl,-U,_WTFTimer__isActive + -Wl,-U,_WTFTimer__secondsUntilTimer + -Wl,-U,_WTFTimer__cancel) + else() + WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wl,-u,_WTFTimer__create + -Wl,-u,_WTFTimer__update + -Wl,-u,_WTFTimer__deinit + -Wl,-u,_WTFTimer__isActive + -Wl,-u,_WTFTimer__secondsUntilTimer + -Wl,-u,_WTFTimer__cancel) + endif() endif () endif ()