mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +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
c40dbd6ff0
commit
135f1915da
@ -8093,7 +8093,7 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void {
|
|||||||
/// compiler-rt, libcxx, libc, libunwind, etc.
|
/// compiler-rt, libcxx, libc, libunwind, etc.
|
||||||
pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
|
pub fn compilerRtOptMode(comp: Compilation) std.builtin.OptimizeMode {
|
||||||
if (comp.debug_compiler_runtime_libs) {
|
if (comp.debug_compiler_runtime_libs) {
|
||||||
return comp.root_mod.optimize_mode;
|
return .Debug;
|
||||||
}
|
}
|
||||||
const target = &comp.root_mod.resolved_target.result;
|
const target = &comp.root_mod.resolved_target.result;
|
||||||
switch (comp.root_mod.optimize_mode) {
|
switch (comp.root_mod.optimize_mode) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user