aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-06-05 22:25:13 -0400
committerAndrew Kelley <andrew@ziglang.org>2025-06-06 23:42:15 -0700
commit37f763560b020ae0ef5ed076afc1872a57266b45 (patch)
tree5fd862f59483a95a04f30fe137e668cf78b37764 /src/Compilation.zig
parentf28ef7ee29ee1e8a1df092f5c4fff0497718415c (diff)
downloadzig-37f763560b020ae0ef5ed076afc1872a57266b45.tar.gz
zig-37f763560b020ae0ef5ed076afc1872a57266b45.zip
x86_64: fix switch dispatch bug
Also closes #23902
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 13c1e50d9e..81d150b03f 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -774,7 +774,7 @@ pub const Directories = struct {
/// `comp.debug_incremental`. It is inline so that comptime-known `false` propagates to the caller,
/// preventing debugging features from making it into release builds of the compiler.
pub inline fn debugIncremental(comp: *const Compilation) bool {
- if (!build_options.enable_debug_extensions) return false;
+ if (!build_options.enable_debug_extensions or builtin.single_threaded) return false;
return comp.debug_incremental;
}