Support TDX debugging feature

This commit is contained in:
Hsy-Intel
2024-11-25 02:57:20 -05:00
committed by Tate, Hongliang Tian
parent 05ff441577
commit d67976da88
3 changed files with 23 additions and 3 deletions

View File

@ -25,3 +25,7 @@ pub fn profile_name_adapter(profile: &str) -> &str {
pub fn bin_file_name() -> String {
get_current_crate_info().name + "-osdk-bin"
}
pub(crate) fn is_tdx_enabled() -> bool {
std::env::var("INTEL_TDX").is_ok_and(|s| s == "1")
}