Skip to content

Commit 8c28caf

Browse files
committed
更新 ostool 版本至 0.7.23,并在 ProjectConfig 中根据架构调整构建系统参数
1 parent ec796c0 commit 8c28caf

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ostool/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ostool"
3-
version = "0.7.22"
3+
version = "0.7.23"
44
edition = "2024"
55
description = "A tool for operating system development"
66
authors = ["周睿 <zrufo747@outlook.com>"]

ostool/src/config/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ impl ProjectConfig {
3636
let targets = get_rustup_targets().unwrap();
3737
let select = shell_select("select target:", &targets);
3838
let target = targets[select].clone();
39-
let build = BuildSystem::new_by_ui(workdir);
39+
let mut build = BuildSystem::new_by_ui(workdir);
4040
let arch = Arch::from_target(&target).unwrap();
41+
if let BuildSystem::Cargo(args) = &mut build
42+
&& matches!(arch, Arch::Riscv64 | Arch::Aarch64)
43+
{
44+
args.kernel_is_bin = true;
45+
}
4146

4247
Self {
4348
compile: Compile { target, build },

0 commit comments

Comments
 (0)