mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-04 07:39:39 +00:00 
			
		
		
		
	fix(xenplatform): use cfg attributes for returning supported platforms
This commit is contained in:
		@ -56,11 +56,10 @@ impl RuntimePlatformType {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub fn supported() -> RuntimePlatformType {
 | 
			
		||||
        if cfg!(target_arch = "x86_64") {
 | 
			
		||||
            RuntimePlatformType::Pv
 | 
			
		||||
        } else {
 | 
			
		||||
            RuntimePlatformType::Unsupported
 | 
			
		||||
        }
 | 
			
		||||
        #[cfg(target_arch = "x86_64")]
 | 
			
		||||
        return RuntimePlatformType::Pv;
 | 
			
		||||
        #[cfg(not(target_arch = "x86_64"))]
 | 
			
		||||
        return RuntimePlatformType::Unsupported;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user