improve behavior if zig_exe_path is not set (#830)

This commit is contained in:
Techatrix
2022-12-17 09:03:05 +01:00
committed by GitHub
parent d679b19676
commit 375daba743
3 changed files with 24 additions and 14 deletions

View File

@@ -162,11 +162,11 @@ pub fn translate(allocator: std.mem.Allocator, config: Config, include_dirs: []c
};
const base_args = &[_][]const u8{
config.zig_exe_path.?,
config.zig_exe_path orelse return null,
"translate-c",
"--enable-cache",
"--zig-lib-dir",
config.zig_lib_path.?,
config.zig_lib_path orelse return null,
"--cache-dir",
config.global_cache_path.?,
"-lc",