Skip to content

Commit 98253bc

Browse files
committed
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 parent 9bb0b43 commit 98253bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compilation.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8116,7 +8116,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
81168116
/// compiler-rt, libcxx, libc, libunwind, etc.
81178117
pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
81188118
if (comp.debug_compiler_runtime_libs) {
8119-
return comp.root_mod.optimize_mode;
8119+
return .Debug;
81208120
}
81218121
const target = &comp.root_mod.resolved_target.result;
81228122
switch (comp.root_mod.optimize_mode) {

0 commit comments

Comments
 (0)