mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-22 06:09:36 +00:00
feat(build): add flat-bin kind and FAT [archive] packing for OS-dev
This commit is contained in:
@@ -86,6 +86,14 @@ pub fn normalize_kind(kind: &str) -> &str {
|
||||
if trimmed.is_empty() { "bin" } else { trimmed }
|
||||
}
|
||||
|
||||
pub fn is_flat_bin(kind: &str) -> bool {
|
||||
kind == "flat-bin"
|
||||
}
|
||||
|
||||
pub fn is_compile_only(kind: &str) -> bool {
|
||||
matches!(kind, "none" | "custom" | "flat-bin")
|
||||
}
|
||||
|
||||
pub fn normalize_platform(platform: &str) -> Option<&str> {
|
||||
let trimmed = platform.trim();
|
||||
if trimmed.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user