mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Refactor the parsing of OSDK crate types
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fecf766771
commit
32a6025819
@ -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 {
|
||||
|
Reference in New Issue
Block a user