header-only 收尾:deps.sh 容忍无 lib;删 release 残留行 - #7
Merged
Merged
Conversation
- ci/deps.sh:依赖(blockmalloc)改为 header-only 后包里没有 lib/, 原先的 `cp "$tmp/lib/"*.so*` 直接 `cannot stat` → 改为存在才拷 - release.yml:上一轮删 find 行的替换因转义未生效,残留行会在 无 lib/ 目录时失败,本次删除 Co-Authored-By: Claude Code <noreply@anthropic.com>
本仓自身也链接 blockmalloc,而它改成 header-only 后发布包里没有 .so → CI 链接失败(`ld: cannot find -lblockmalloc`)。 - src/slotsboxmalloc.c:加 #define BLOCKMALLOC_IMPLEMENTATION(先于 slotsboxmalloc 的宏,后者实现体调用前者) - CMakeLists:去掉 target_link_libraries(slotsboxmalloc PUBLIC blockmalloc) 验证:本地构建通过;libslotsboxmalloc.so 不再依赖 libblockmalloc。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
重发 v0.1.5 时 release-abi 失败:
两处残留:
ci/deps.sh(真正的失败点)—— 它下载 blockmalloc 的包,而该包改为 header-only 后没有lib/,cp "$tmp/lib/"*.so*直接报错release.yml—— 上一轮删find build … "$d/lib/"的替换因转义未生效,残留行在无lib/目录时同样会失败修法
两处都改为「存在才拷」。
🤖 Generated with Claude Code