Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
3.02k stars 115 forks source link

docs: add `output` file hack to tips #39

Closed Noratrieb closed 2 years ago

Noratrieb commented 2 years ago

When I built my project, rustc_codegen_nvvm rebuilt on every subsequent build of my program, even if I just changed the CPU crate code. Someone on the discord server shared their trick on how to fix it, by touching the output file in the target or rustc_codegen_nvvm and it worked for me, so I added it to the guide.

RDambrosio016 commented 2 years ago

Hmmm i think i would rather try and fix this build.rs issue than document a hack for fixing it

Noratrieb commented 2 years ago

I would add it temporarily, fix the issue somehow, and then remove it again. It's certainly good to know about it right now