Browse Source

Early-exit the c++ example on Windows

tags/v0.1.0
Philipp Oppermann 3 years ago
parent
commit
ff179c3b93
Failed to extract signature
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      examples/c++-dataflow/run.rs

+ 5
- 0
examples/c++-dataflow/run.rs View File

@@ -7,6 +7,11 @@ use std::{

#[tokio::main]
async fn main() -> eyre::Result<()> {
if cfg!(windows) {
eprintln!("The c++ example does not work on Windows currently because of a linker error");
return Ok(());
}

let root = Path::new(env!("CARGO_MANIFEST_DIR"));
let target = root.join("target");
std::env::set_current_dir(root.join(file!()).parent().unwrap())


Loading…
Cancel
Save