mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-21 16:41:56 +03:00
add cimport file to zcu.alive_files
This commit is contained in:
@@ -5330,6 +5330,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
|
||||
.prev_zir = null,
|
||||
.zoir_invalidated = false,
|
||||
};
|
||||
try zcu.alive_files.putNoClobber(zcu.gpa, c_import_file_index, undefined);
|
||||
break :file c_import_file_index;
|
||||
};
|
||||
pt.updateFile(new_file_index, zcu.fileByIndex(new_file_index)) catch |err|
|
||||
|
||||
Reference in New Issue
Block a user