authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-25 17:14:26-07:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-28 08:19:39+02:00
log135f1915daf8583a4dee81691da70cbeb14004f8
treee7108c0602bcf31260c0f3fac25fb1b274e43d36
parentc40dbd6ff098e9df91cfe3f602419869293e889b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: --debug-rt always Debug

--debug-rt previously would make rt libs match the root module. Now they are always debug when --debug-rt is passed. This includes compiler-rt, fuzzer lib, and others.

1 files changed, 1 insertions(+), 1 deletions(-)

src/Compilation.zig+1-1
...@@ -8093,7 +8093,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {...@@ -8093,7 +8093,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
8093/// compiler-rt, libcxx, libc, libunwind, etc.8093/// compiler-rt, libcxx, libc, libunwind, etc.
8094pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {8094pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
8095 if (comp.debug_compiler_runtime_libs) {8095 if (comp.debug_compiler_runtime_libs) {
8096 return comp.root_mod.optimize_mode;8096 return .Debug;
8097 }8097 }
8098 const target = &comp.root_mod.resolved_target.result;8098 const target = &comp.root_mod.resolved_target.result;
8099 switch (comp.root_mod.optimize_mode) {8099 switch (comp.root_mod.optimize_mode) {