浏览代码

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

Rhaskia 6 月之前
父节点
当前提交
d20f85b318
共有 1 个文件被更改,包括 5 次插入0 次删除
  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),