| ... | @@ -463,10 +463,10 @@ pub const TestContext = struct { | ... | @@ -463,10 +463,10 @@ pub const TestContext = struct { |
| 463 | | 463 | |
| 464 | var cache_dir = try tmp.dir.makeOpenPath("zig-cache", .{}); | 464 | var cache_dir = try tmp.dir.makeOpenPath("zig-cache", .{}); |
| 465 | defer cache_dir.close(); | 465 | defer cache_dir.close(); |
| 466 | const bogus_path = "bogus"; // TODO this will need to be fixed before we can test LLVM extensions | 466 | const tmp_path = try std.fs.path.join(arena, &[_][]const u8{ ".", "zig-cache", "tmp", &tmp.sub_path }); |
| 467 | const zig_cache_directory: Compilation.Directory = .{ | 467 | const zig_cache_directory: Compilation.Directory = .{ |
| 468 | .handle = cache_dir, | 468 | .handle = cache_dir, |
| 469 | .path = try std.fs.path.join(arena, &[_][]const u8{ bogus_path, "zig-cache" }), | 469 | .path = try std.fs.path.join(arena, &[_][]const u8{ tmp_path, "zig-cache" }), |
| 470 | }; | 470 | }; |
| 471 | | 471 | |
| 472 | const tmp_src_path = switch (case.extension) { | 472 | const tmp_src_path = switch (case.extension) { |
| ... | @@ -475,7 +475,7 @@ pub const TestContext = struct { | ... | @@ -475,7 +475,7 @@ pub const TestContext = struct { |
| 475 | }; | 475 | }; |
| 476 | | 476 | |
| 477 | var root_pkg: Package = .{ | 477 | var root_pkg: Package = .{ |
| 478 | .root_src_directory = .{ .path = bogus_path, .handle = tmp.dir }, | 478 | .root_src_directory = .{ .path = tmp_path, .handle = tmp.dir }, |
| 479 | .root_src_path = tmp_src_path, | 479 | .root_src_path = tmp_src_path, |
| 480 | }; | 480 | }; |
| 481 | | 481 | |
| ... | @@ -488,7 +488,7 @@ pub const TestContext = struct { | ... | @@ -488,7 +488,7 @@ pub const TestContext = struct { |
| 488 | }); | 488 | }); |
| 489 | | 489 | |
| 490 | const emit_directory: Compilation.Directory = .{ | 490 | const emit_directory: Compilation.Directory = .{ |
| 491 | .path = bogus_path, | 491 | .path = tmp_path, |
| 492 | .handle = tmp.dir, | 492 | .handle = tmp.dir, |
| 493 | }; | 493 | }; |
| 494 | const emit_bin: Compilation.EmitLoc = .{ | 494 | const emit_bin: Compilation.EmitLoc = .{ |