Jelajahi Sumber

Return None in autodetect on cargo feature on other platforms (#3445)

Rhaskia 6 bulan lalu
induk
melakukan
d20f85b318
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      packages/cli/src/platform.rs

+ 5 - 0
packages/cli/src/platform.rs

@@ -173,6 +173,11 @@ impl Platform {
                 {
                     Some(Platform::Linux)
                 }
+                // Possibly need a something for freebsd? Maybe default to Linux?
+                #[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
+                {
+                    None
+                }
             }
             "mobile" => None,
             "liveview" => Some(Platform::Liveview),