Browse Source

Link system libraries for C++ operator example too

tags/v0.3.0-rc
Philipp Oppermann 2 years ago
parent
commit
27f621f0aa
Failed to extract signature
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      examples/c++-dataflow/run.rs

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

@@ -273,6 +273,16 @@ async fn build_cxx_operator(
link.arg("-lmsvcrt");
link.arg("-fms-runtime-lib=static");
}
#[cfg(target_os = "macos")]
{
link.arg("-framework").arg("CoreServices");
link.arg("-framework").arg("Security");
link.arg("-l").arg("System");
link.arg("-l").arg("resolv");
link.arg("-l").arg("pthread");
link.arg("-l").arg("c");
link.arg("-l").arg("m");
}
link.arg("-o")
.arg(Path::new("../build").join(format!("{DLL_PREFIX}{out_name}{DLL_SUFFIX}")));
if let Some(parent) = paths[0].parent() {


Loading…
Cancel
Save