authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-25 17:14:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-25 17:15:47-07:00
log98253bc0eee2bace0ec1689126a8dd853d296877
tree360bbbf160a9d7c9335125a7ae026f4091dfbc14
parent9bb0b43ea3ababb715a15bba8c09ba71e9c3ccc2

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
...@@ -8116,7 +8116,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {...@@ -8116,7 +8116,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
8116/// compiler-rt, libcxx, libc, libunwind, etc.8116/// compiler-rt, libcxx, libc, libunwind, etc.
8117pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {8117pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
8118 if (comp.debug_compiler_runtime_libs) {8118 if (comp.debug_compiler_runtime_libs) {
8119 return comp.root_mod.optimize_mode;8119 return .Debug;
8120 }8120 }
8121 const target = &comp.root_mod.resolved_target.result;8121 const target = &comp.root_mod.resolved_target.result;
8122 switch (comp.root_mod.optimize_mode) {8122 switch (comp.root_mod.optimize_mode) {