Support for other platforms in detect_targets

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-06 22:42:43 +10:00
parent 9a8b28afcf
commit b74139f457
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -23,6 +23,10 @@ pub async fn detect_targets() -> Vec<Box<str>> {
{
macos::detect_targets_macos()
}
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
{
vec![TARGET.into()]
}
}
#[cfg(target_os = "linux")]