Open
Description
cc 1.0.104
My build.rs the script successfully compiles the CUDA file, but it has problems running its detect_compiler_family.c
This is due to the fact that nvcc does not see cl.exe .
But I can't help him by setting -ccbin how I do it to compile my CUDA file.
How can I get rid of the warnings related to this?
fn main() {
println!("cargo::rerun-if-changed=cuda/mandelbrot.cu");
let mut build = cc::Build::new();
let compiler = build.get_compiler();
let ccbin = compiler.path();
build
.cuda(true)
.cudart("static")
.ccbin(false)
.flag("-ccbin").flag(ccbin)
.file("cuda/mandelbrot.cu");
build.compile("mandelbrotcuda");
}
Warning is: Compiler family detection failed due to error: ToolExecError: Command "nvcc" "-E" "C:\Rust\mandelbrot_test_render\target\debug\build\mandelbrot_test_render-02f861198c0a4c7d\out\4903743526134228929detect_compiler_family.c" with args nvcc did not execute successfully (status code exit code: 1).
If i run this directly in cmd
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
Metadata
Metadata
Assignees
Labels
No labels