mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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.
This commit is contained in:
parent
9bb0b43ea3
commit
98253bc0ee
1 changed files with 1 additions and 1 deletions
|
|
@ -8116,7 +8116,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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue