CLI: allow using --debug-compile-errors with zig build
This commit is contained in:
@@ -72,6 +72,7 @@ pub const Builder = struct {
|
||||
pkg_config_pkg_list: ?(PkgConfigError![]const PkgConfigPkg) = null,
|
||||
args: ?[][]const u8 = null,
|
||||
debug_log_scopes: []const []const u8 = &.{},
|
||||
debug_compile_errors: bool = false,
|
||||
|
||||
/// Experimental. Use system Darling installation to run cross compiled macOS build artifacts.
|
||||
enable_darling: bool = false,
|
||||
@@ -2686,6 +2687,10 @@ pub const LibExeObjStep = struct {
|
||||
try zig_args.append(log_scope);
|
||||
}
|
||||
|
||||
if (builder.debug_compile_errors) {
|
||||
try zig_args.append("--debug-compile-errors");
|
||||
}
|
||||
|
||||
if (builder.verbose_cimport) zig_args.append("--verbose-cimport") catch unreachable;
|
||||
if (builder.verbose_air) zig_args.append("--verbose-air") catch unreachable;
|
||||
if (builder.verbose_llvm_ir) zig_args.append("--verbose-llvm-ir") catch unreachable;
|
||||
|
||||
Reference in New Issue
Block a user