Browse Source

Compile operator with `-fPIC`

tags/v0.0.0-test.4
Philipp Oppermann 3 years ago
parent
commit
97ba06c9ef
Failed to extract signature
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      examples/c-dataflow/run.rs

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

@@ -72,6 +72,7 @@ async fn build_c_operator(root: &Path) -> eyre::Result<()> {
let mut compile = tokio::process::Command::new("clang");
compile.arg("-c").arg("operator.c");
compile.arg("-o").arg("build/operator.o");
compile.arg("-fPIC");
if !compile.status().await?.success() {
bail!("failed to compile c operator");
};


Loading…
Cancel
Save