1
0
Эх сурвалжийг харах

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

Rhaskia 6 сар өмнө
parent
commit
d20f85b318

+ 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),