Skip to content

Fix macOS CMake build compatibility#640

Merged
Shfdis merged 2 commits into
ydb-platform:mainfrom
aral01:fix/macos-cmake-build
Jul 22, 2026
Merged

Fix macOS CMake build compatibility#640
Shfdis merged 2 commits into
ydb-platform:mainfrom
aral01:fix/macos-cmake-build

Conversation

@aral01

@aral01 aral01 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • use the platform libc implementations on macOS instead of compiling bundled Linux compatibility fallbacks
  • remove hard-coded macOS platform-version linker flags from SDK host tools

Why

The bundled compatibility implementations are intended for platforms that do not provide these libc functions. Compiling them on macOS causes conflicts with the platform libc.

The fixed platform_version linker arguments can also disagree with the deployment target selected by CMake or the active toolchain. Removing them leaves deployment-target selection in one place.

Non-Apple builds retain the existing compatibility sources and behavior.

aral01 added 2 commits July 22, 2026 14:41
Use the libc implementations provided by macOS instead of compiling bundled Linux-oriented replacements. Keep the existing compatibility sources unchanged for non-Apple platforms.
Remove hard-coded platform_version flags from SDK host tools. CMake and the selected toolchain now provide one consistent macOS deployment target without duplicate linker settings.
@Shfdis
Shfdis marked this pull request as ready for review July 22, 2026 13:00

@Shfdis Shfdis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Shfdis
Shfdis merged commit 7e0839b into ydb-platform:main Jul 22, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants