We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81a32b commit 4799266Copy full SHA for 4799266
1 file changed
examples/vecadd/build.rs
@@ -4,6 +4,12 @@ use std::path;
4
use cuda_builder::CudaBuilder;
5
6
fn main() {
7
+ // On Windows, nanorand's entropy uses SystemFunction036 (RtlGenRandom) from advapi32.
8
+ // Explicitly link it so the MSVC linker resolves the symbol (avoids LNK2019 when
9
+ // mixing CRTs or with certain link orders).
10
+ #[cfg(target_os = "windows")]
11
+ println!("cargo:rustc-link-lib=advapi32");
12
+
13
println!("cargo::rerun-if-changed=build.rs");
14
println!("cargo::rerun-if-changed=kernels");
15
0 commit comments