mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
CLI: strip lazy built commands by default
Saves a lot of time since we use -OReleaseFast. Disabled when ZIG_DEBUG_CMD=1 is passed.
This commit is contained in:
parent
a4380a30f5
commit
420b7713d4
@ -5557,6 +5557,7 @@ fn jitCmd(
|
||||
.Debug
|
||||
else
|
||||
.ReleaseFast;
|
||||
const strip = optimize_mode != .Debug;
|
||||
const override_lib_dir: ?[]const u8 = try EnvVar.ZIG_LIB_DIR.get(arena);
|
||||
const override_global_cache_dir: ?[]const u8 = try EnvVar.ZIG_GLOBAL_CACHE_DIR.get(arena);
|
||||
|
||||
@ -5599,6 +5600,7 @@ fn jitCmd(
|
||||
|
||||
const config = try Compilation.Config.resolve(.{
|
||||
.output_mode = .Exe,
|
||||
.root_strip = strip,
|
||||
.root_optimize_mode = optimize_mode,
|
||||
.resolved_target = resolved_target,
|
||||
.have_zcu = true,
|
||||
@ -5614,6 +5616,7 @@ fn jitCmd(
|
||||
.inherited = .{
|
||||
.resolved_target = resolved_target,
|
||||
.optimize_mode = optimize_mode,
|
||||
.strip = strip,
|
||||
},
|
||||
.global = config,
|
||||
.parent = null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user