Fix build on non-Redox

This commit is contained in:
Jeremy Soller
2025-09-26 15:52:31 -06:00
parent c540ed8f9d
commit 69de3d62a1
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -32,7 +32,6 @@ fatfs = "0.3.0"
fscommon = "0.1.1"
gpt = "3.0.0"
libc = "0.2.70"
libredox = "0.1"
pkgar = "0.1.17"
pkgar-core = "0.1.17"
pkgar-keys = "0.1.17"
@@ -48,6 +47,9 @@ termion = "4"
toml = "0.8"
uuid = { version = "1.4", features = ["v4"] }
[target.'cfg(target_os = "redox")'.dependencies]
libredox = "0.1"
[patch.crates-io]
cc-11 = { git = "https://github.com/tea/cc-rs", branch="riscv-abi-arch-fix", package = "cc" }
# https://github.com/briansmith/ring/issues/1999
+9
View File
@@ -684,7 +684,16 @@ where
with_redoxfs(disk_redoxfs, disk_option.password_opt, callback)
}
#[cfg(not(target_os = "redox"))]
pub fn try_fast_install<D: redoxfs::Disk, F: FnMut(u64, u64)>(
_fs: &mut redoxfs::FileSystem<D>,
_progress: F,
) -> Result<bool> {
Ok(false)
}
/// Try fast install using live disk memory
#[cfg(target_os = "redox")]
pub fn try_fast_install<D: redoxfs::Disk, F: FnMut(u64, u64)>(
fs: &mut redoxfs::FileSystem<D>,
mut progress: F,