commit 135f1915daf8583a4dee81691da70cbeb14004f8 (tree)
parent c40dbd6ff098e9df91cfe3f602419869293e889b
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 25 Sep 2025 17:14:26 -0700
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Compilation.zig b/src/Compilation.zig
@@ -8093,7 +8093,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
/// compiler-rt, libcxx, libc, libunwind, etc.
pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
if (comp.debug_compiler_runtime_libs) {
- return comp.root_mod.optimize_mode;
+ return .Debug;
}
const target = &comp.root_mod.resolved_target.result;
switch (comp.root_mod.optimize_mode) {