summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--wireguard-go-rs/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/wireguard-go-rs/build.rs b/wireguard-go-rs/build.rs
index a2129d8641..03b78e172f 100644
--- a/wireguard-go-rs/build.rs
+++ b/wireguard-go-rs/build.rs
@@ -278,9 +278,10 @@ fn find_lib_exe() -> anyhow::Result<PathBuf> {
// Find lib.exe relative to msbuild.exe, in ../../../../ relative to msbuild
let search_path = msbuild_exe
.ancestors()
- .nth(3)
+ .nth(4)
.context("Unexpected msbuild.exe path")?;
+ // TODO: Make this arch agnostic (host AND target)
let path_is_lib_exe = |file: &Path| file.ends_with("Hostx64/x64/lib.exe");
find_file(search_path, &path_is_lib_exe)?.context("No lib.exe relative to msbuild.exe")