release(macos): 修正 CLI 构建顺序(libkvlanglayout 先入 bin) - #338
Merged
Conversation
`[]` 与 `·[…]` 都不对指针隐式解引用,先用显式 `*p` 取回目标: - layout:`p[i]`(p:*[]T)报 TypeError(ptr_index);`·[…]` 的 base 须为容器或路径串,compact 数组/标量报 TypeError(成员访问判定, ast/lower/parser/symbol 配套) - runtime:rwir_kv 成员访问要求容器(struct/map/index/extindex 或 []char/* 路径串),compact 数组报 TypeError 而非静默脏值 - spec:01-词法/09 优先级、03/15 成员访问、03/16 ptr(`*` 唯一解引用 路径,读写同规则)、04/03 函数(局部指针与形参槽同一约定)、 05/03 成员访问(base 形态判定)、附录/05 表达式 - 新增 error_cases:array_member / ptr_index / ptr_member - 新增 tutorial 10-types/09-deref Closes #305 Co-Authored-By: Claude Code <noreply@anthropic.com>
install 的逆操作(配合「测试恒按 /usr 最终态」的约定,便于反复重装):
- `make status` 列出系统目录里已安装的库 / pkgconfig / 可执行 / 头
- `make clear` 删 .so(/usr/lib、/usr/lib/kvspace、/lib、/usr/local/lib…)
与可执行(kvlang / kvlanglayout / kvspace)+ kvspace.pc
- `make clear-headers` 删头(/usr/include/kvspace|kvlang、/usr/local/include/…)
- `make clear-all` clear + clear-headers
/lib、/bin 多为指向 /usr 的符号链接,重复删同一文件无副作用;SUDO 可覆盖。
Co-Authored-By: Claude Code <noreply@anthropic.com>
runtime-rs 的 build.rs 在 ../bin 搜索 libkvlang_runtime / libkvlanglayout, 原先三个 cargo build 全跑完才 cp → 构建 kvlang 时报 `ld: library 'kvlanglayout' not found`。改为 layout 构建后立即 cp。 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.2.18 的 macos job 失败:
runtime-rs的build.rs在../bin搜索libkvlang_runtime/libkvlanglayout,而我把三个cargo build全跑完才cp—— 构建kvlang时bin/里还没有libkvlanglayout.dylib。修法
layout构建后立即cp libkvlanglayout.dylib bin/,再构建 runtime-rs。🤖 Generated with Claude Code