Add --libary c when building zig hosts

This commit is contained in:
Richard Feldman 2020-12-03 23:37:36 -05:00
parent 0342330c0e
commit 4a72ae8ed0

View file

@ -55,7 +55,12 @@ pub fn rebuild_host(host_input_path: &Path) {
let output = Command::new("zig")
.env_clear()
.env("PATH", &env_path)
.args(&["build-obj", zig_host_src.to_str().unwrap()])
.args(&[
"--library",
"c",
"build-obj",
zig_host_src.to_str().unwrap(),
])
.output()
.unwrap();