diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-18 18:17:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:20 -0700 |
| commit | 4b667e736201d9fbe2e440863ce1e631a2d3b4e7 (patch) | |
| tree | ec54cabd14be4a9767077ff044485a0bba51d375 /src/Compilation.zig | |
| parent | fe87bae7e39657c96015aa7f3c7a35a0b01da1ad (diff) | |
| download | zig-4b667e736201d9fbe2e440863ce1e631a2d3b4e7.tar.gz zig-4b667e736201d9fbe2e440863ce1e631a2d3b4e7.zip | |
fix compilations without zig compilation units
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 10f9572192..fa674e28fa 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1180,7 +1180,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { return error.ExportTableAndImportTableConflict; } - const have_zcu = options.root_mod.root_src_path.len != 0; + const have_zcu = options.config.have_zcu; const comp: *Compilation = comp: { // For allocations that have the same lifetime as Compilation. This |
