Skip to content

Commit

Permalink
Return None in autodetect on cargo feature on other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaskia authored Dec 23, 2024
1 parent 61b55c9 commit f27295d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f27295d

Please sign in to comment.