fix compilation on windows for windows

This commit is contained in:
Folkert 2022-10-17 21:22:13 +02:00
parent 58c7a21569
commit d93902cd18
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -203,7 +203,7 @@ pub fn build_zig_host_native(
"build-exe",
"-fPIE",
shared_lib_path.to_str().unwrap(),
&bitcode::get_builtins_host_obj_path(),
&bitcode::get_builtins_windows_obj_path(),
]);
} else {
command.args(&["build-obj", "-fPIC"]);
@ -221,6 +221,7 @@ pub fn build_zig_host_native(
// include libc
"--library",
"c",
"-dynamic",
// cross-compile?
"-target",
target,