aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2025-01-01 03:47:17 -0800
committerDavid Rubin <87927264+Rexicon226@users.noreply.github.com>2025-02-25 11:22:33 -0800
commit931178494f4c77631e5eb9c567f64492d6592eeb (patch)
treecc20259219488748b3bbc48c6293f5a1dbfa951a /src/link.zig
parent9432a9b6e1d2bd340afac6b29e49f1094cf1ba93 (diff)
downloadzig-931178494f4c77631e5eb9c567f64492d6592eeb.tar.gz
zig-931178494f4c77631e5eb9c567f64492d6592eeb.zip
Compilation: correct when to include ubsan
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig
index 82b4e63397..27711db41d 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -1102,12 +1102,12 @@ pub const File = struct {
log.debug("zcu_obj_path={s}", .{if (zcu_obj_path) |s| s else "(null)"});
- const compiler_rt_path: ?Path = if (comp.include_compiler_rt)
+ const compiler_rt_path: ?Path = if (comp.compiler_rt_strat == .obj)
comp.compiler_rt_obj.?.full_object_path
else
null;
- const ubsan_rt_path: ?Path = if (comp.include_ubsan_rt)
+ const ubsan_rt_path: ?Path = if (comp.ubsan_rt_strat == .obj)
comp.ubsan_rt_obj.?.full_object_path
else
null;