Skip to content

ci: 增加 macOS 构建;dl → ${CMAKE_DL_LIBS} 跨平台 - #17

Merged
miaobyte merged 1 commit into
mainfrom
ci/macos
Sep 12, 2026
Merged

miaobyte merged 1 commit into
mainfrom
ci/macos

Conversation

@miaobyte

Copy link
Copy Markdown
Contributor

变更

给 kvspace 增加 macOS CI(任务:6 仓 macOS 编译通过)。

  • CMakeListstarget_link_libraries(kvspace PRIVATE dl)${CMAKE_DL_LIBS}。裸 dl 在 Linux 展开为 libdl、在 macOS 不存在(dlopen/dlsym 在 libSystem 内),故 macOS 链接会失败。
  • 新增 ci-macos.ymlmacos-latest 上 cmake 构建 + cmake --install 校验安装规则(prefix 用 /usr/local,避开 SIP 保护的 /usr)。

kvspace 无库依赖,是这条依赖链的最上游,先把它跑通。

🤖 Generated with Claude Code

- CMakeLists:dlopen/dlsym 宿主库改用 ${CMAKE_DL_LIBS}(Linux=libdl,
  macOS 在 libSystem 内),原裸 dl 在 macOS 链接失败
- 新增 ci-macos.yml:macos-latest 上 cmake 构建 + 安装校验

Co-Authored-By: Claude Code <noreply@anthropic.com>
@miaobyte
miaobyte merged commit fe42c22 into main Sep 12, 2026
4 checks passed
@miaobyte
miaobyte deleted the ci/macos branch September 12, 2026 10:58
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.

1 participant