Skip to content

Commit a92e90b

Browse files
committed
explicitly link advapi32 on windows
1 parent fbf6887 commit a92e90b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ fn main() {
440440

441441
match target_os {
442442
TargetOs::Windows(WindowsVariant::Msvc) => {
443+
println!("cargo:rustc-link-lib=advapi32");
443444
if cfg!(debug_assertions) {
444445
println!("cargo:rustc-link-lib=dylib=msvcrtd");
445446
}

0 commit comments

Comments
 (0)