build: disallow building tdx feature

It is broken. There is no use in producing something that doesn't work.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2026-07-08 11:37:45 -07:00
committed by Rob Bradford
parent e8f021b05e
commit b2d1065a55
3 changed files with 2 additions and 12 deletions

View File

@@ -894,6 +894,8 @@ fn expand_fdtable() -> Result<(), FdTableError> {
}
fn main() {
#[cfg(feature = "tdx")]
compile_error!("Feature 'tdx' is broken.");
#[cfg(all(feature = "tdx", feature = "sev_snp"))]
compile_error!("Feature 'tdx' and 'sev_snp' are mutually exclusive.");
#[cfg(all(feature = "sev_snp", not(target_arch = "x86_64")))]