fix: riscv-virt-rt 0.4.1 —— 0.4.0 的零 libc 模板生成出来跑不起来 - #232
Merged
Conversation
脚手架会把模板自己的包注入为依赖(好让模板不与库脱节),而本包的模块 #include <stdio.h> ⇒ 在没有 C 库的目标上,那个从未被请求的依赖在工程本身之前就编不过。 0.4.1 声明 [template.inject] self = false(需 mcpp 2026.8.20.2+),并把「没有 C 库」 从错误改为不贡献,同时**照常发模拟器** —— 哪个模拟器能启动这台机器与哪份 libc 无关。 0.4.0 保留:它的默认模板不受影响。⚠️ 这是本轮唯一一次发布之后才发现的缺陷,发现方式是用发布后的包从零走一遍新用户流程。
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.
脚手架会把模板自己的包注入为依赖(好让模板不与库脱节),而本包的模块
#include <stdio.h> ⇒ 在没有 C 库的目标上,那个从未被请求的依赖在工程本身之前就编不过。
0.4.1 声明 [template.inject] self = false(需 mcpp 2026.8.20.2+),并把「没有 C 库」
从错误改为不贡献,同时照常发模拟器 —— 哪个模拟器能启动这台机器与哪份 libc 无关。
0.4.0 保留:它的默认模板不受影响。