Refactor the parsing of OSDK crate types

This commit is contained in:
Zhang Junyang
2025-02-09 17:53:02 +08:00
committed by Tate, Hongliang Tian
parent fecf766771
commit 32a6025819
11 changed files with 131 additions and 101 deletions

View File

@ -2,7 +2,7 @@
use std::process::Command;
use crate::util::get_current_crate_info;
use crate::util::get_current_crates;
pub const COMMON_CARGO_ARGS: &[&str] = &[
"-Zbuild-std=core,alloc,compiler_builtins",
@ -23,7 +23,7 @@ pub fn profile_name_adapter(profile: &str) -> &str {
}
pub fn bin_file_name() -> String {
get_current_crate_info().name + "-osdk-bin"
get_current_crates().remove(0).name + "-osdk-bin"
}
pub(crate) fn is_tdx_enabled() -> bool {