From ff179c3b933d48c66f7bbcc4676f4fcd566f927f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 10 Nov 2022 12:28:23 +0100 Subject: [PATCH] Early-exit the c++ example on Windows --- examples/c++-dataflow/run.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/c++-dataflow/run.rs b/examples/c++-dataflow/run.rs index 806cec91..b76c52d3 100644 --- a/examples/c++-dataflow/run.rs +++ b/examples/c++-dataflow/run.rs @@ -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())