Skip to content

runtimec2: 链接目录显式包含 kvspace 前端安装位置 - #548

Merged
miaobyte merged 1 commit into
masterfrom
feat/c2-cmake-linkdirs
Oct 28, 2026
Merged

miaobyte merged 1 commit into
masterfrom
feat/c2-cmake-linkdirs

Conversation

@miaobyte

Copy link
Copy Markdown
Contributor

修本地/新 pod 干净构建 -lkvspace 找不到的问题:

  • Linux:target_link_directories(kvlang_runtimec2 PRIVATE /usr/lib /usr/lib/kvspace)
  • macOS:补 /usr/local/lib(前端在 /usr/local/lib 或 /usr/local/lib/kvspace)
  • m1_smoke 同步

背景:前端 libkvspace.so 装 <prefix>/lib/kvspace,干净树无 -L 时链接失败;CI 走 deps tarball 装 /usr/lib 所以一直未暴露。对齐 runtime/CMakeLists.txt 的 KVLANG_LINK_DIRS。

验证:删除 /usr/lib 前端兼容软链后,全新 build 目录 cmake + build 通过,kvlang_runtimec2、m1_smoke 均链接成功。

🤖 Generated with Claude Code

Linux 分支补 target_link_directories(/usr/lib /usr/lib/kvspace),macOS 补
/usr/local/lib;m1_smoke 同步。前端 libkvspace.so 装 <prefix>/lib/kvspace
(或 /usr/lib),干净树无 -L 时找不到 -lkvspace;CI 用 deps tarball 装
/usr/lib 所以之前未暴露。

验证:删除 /usr/lib 前端软链后全新 build 目录 cmake+build 通过,
kvlang_runtimec2 与 m1_smoke 均链接成功。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@miaobyte
miaobyte merged commit 3935f05 into master Oct 28, 2026
2 of 10 checks passed
@miaobyte
miaobyte deleted the feat/c2-cmake-linkdirs branch October 29, 2026 03:57
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