Skip to content
Snippets Groups Projects

Edge detection

Merged Aaron Councilman requested to merge juno-edge-detection into main
Files
11
+ 8
2
#![feature(exit_status_error)]
use std::env::var;
use std::path::Path;
use std::process::Command;
@@ -9,12 +11,16 @@ fn main() {
.args(&["src/rtdefs.cu", "-c", "-o"])
.arg(&format!("{}/rtdefs.o", out_dir))
.status()
.expect("PANIC: NVCC failed when building runtime. Is NVCC installed?");
.expect("PANIC: NVCC failed when building runtime. Is NVCC installed?")
.exit_ok()
.expect("NVCC did not succeed");
Command::new("ar")
.current_dir(&Path::new(&out_dir))
.args(&["crus", "librtdefs.a", "rtdefs.o"])
.status()
.unwrap();
.unwrap()
.exit_ok()
.expect("ar did not succeed");
println!("cargo::rustc-link-search=native={}", out_dir);
println!("cargo::rustc-link-search=native=/usr/lib/x86_64-linux-gnu/");
Loading