| ... | @@ -268,7 +268,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { | ... | @@ -268,7 +268,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { |
| 268 | | 268 | |
| 269 | { | 269 | { |
| 270 | // new scope to ensure definition file is written before passing the path to WriteImportLibrary | 270 | // new scope to ensure definition file is written before passing the path to WriteImportLibrary |
| 271 | const def_final_file = try comp.global_cache_directory.handle.createFile(def_final_path, .{ .truncate = true }); | 271 | const def_final_file = try o_dir.createFile(final_def_basename, .{ .truncate = true }); |
| 272 | defer def_final_file.close(); | 272 | defer def_final_file.close(); |
| 273 | try pp.prettyPrintTokens(def_final_file.writer()); | 273 | try pp.prettyPrintTokens(def_final_file.writer()); |
| 274 | } | 274 | } |