Pass -lc to translate-c (#660)

This commit is contained in:
Caleb Cornett 2022-09-17 15:16:36 -04:00 committed by GitHub
parent 6d9e891d98
commit 96f00f05f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,6 +134,7 @@ pub fn translate(allocator: std.mem.Allocator, config: Config, include_dirs: []c
config.zig_lib_path.?,
"--cache-dir",
config.global_cache_path.?,
"-lc",
};
const argc = base_args.len + 2 * (include_dirs.len + if (base_include_dirs) |dirs| dirs.len else 0) + 1;