mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-18 13:41:52 +02:00
test: link e2e on windows
This commit is contained in:
1 parent
3d6d74dfcc
commit
8d875c7ed4
1 file changed
+20
@@ -16,5 +16,25 @@ fn main() {
|
||||
println!("cargo:rustc-link-arg=/MANIFEST:EMBED");
|
||||
println!("cargo:rustc-link-arg=/MANIFESTINPUT:{manifest}");
|
||||
println!("cargo:rerun-if-changed={manifest}");
|
||||
|
||||
// Donut links the C runtime statically, and tauri-build puts a stub
|
||||
// msvcrt.lib on the library path every dependent sees. Its link
|
||||
// arguments stay with Donut, so without these the stub hides the real
|
||||
// runtime and the link fails with unresolved CRT symbols.
|
||||
for lib in [
|
||||
"libvcruntimed.lib",
|
||||
"vcruntime.lib",
|
||||
"vcruntimed.lib",
|
||||
"libcmtd.lib",
|
||||
"msvcrt.lib",
|
||||
"msvcrtd.lib",
|
||||
"libucrt.lib",
|
||||
"libucrtd.lib",
|
||||
] {
|
||||
println!("cargo:rustc-link-arg=/NODEFAULTLIB:{lib}");
|
||||
}
|
||||
for lib in ["libcmt.lib", "libvcruntime.lib", "ucrt.lib"] {
|
||||
println!("cargo:rustc-link-arg=/DEFAULTLIB:{lib}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user