Skip to content

Commit

Permalink
Support for windows compilation of CLI
Browse files Browse the repository at this point in the history
This adds a dummy implementation that compiles in windows.
  • Loading branch information
JettChenT committed Aug 5, 2023
1 parent fc59287 commit 3653f4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions burrow/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enum Commands {
#[derive(Args)]
struct StartArgs {}

#[cfg(any(target_os = "linux", target_vendor = "apple"))]
async fn try_main() -> Result<()> {
burrow::ensureroot::ensure_root();

Expand All @@ -55,6 +56,12 @@ async fn try_main() -> Result<()> {
Ok(())
}

#[cfg(not(any(target_os = "linux", target_vendor = "apple")))]
async fn try_main() -> Result<()> {
println!("Burrow is not supported on this platform yet.");
Ok(())
}

#[tokio::main(flavor = "current_thread")]
async fn main() {
println!("Platform: {}", std::env::consts::OS);
Expand Down

0 comments on commit 3653f4d

Please sign in to comment.