[libcxx-commits] [libcxx] [libc++] Use public os_sync API instead of private __ulock on newer Apple platforms (PR #182947)
Roman SBKarr Katuntsev via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 13 19:18:59 PDT 2026
================
@@ -15,18 +15,30 @@
# if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500
----------------
SBKarr wrote:
Well, i'm developing a cross-platform SDK, which is intended to ensure that all components, including libc++, work in a consistent manner across all platforms (Linux, Windows, Android, ...). The SDK build tools ensure that libc++.dylib isn't used, only the libc++.a from SDK itself. So, for now, I already use a simple patch that overrides the private APIs.
One of the goals of such an SDK is to eliminate dependencies on proprietary SDKs and ensure legally valid application building across all platforms (for example, Linux -> MacOS, bypassing the requirement to use the MacOS SDK on Apple hardware). That is, I cannot use libc++.dylib and its tbd from the MacOS SDK due to a user license conflict.
https://github.com/llvm/llvm-project/pull/182947
More information about the libcxx-commits
mailing list