Commit dfe430e9f4

Andrew Kelley <andrew@ziglang.org>
2024-02-27 07:14:57
move lazily compiled source files to lib/compiler/
1 parent 0157e11
lib/std/zig/reduce/Walk.zig → lib/compiler/reduce/Walk.zig
File renamed without changes
lib/build_runner.zig → lib/compiler/build_runner.zig
File renamed without changes
lib/std/zig/fmt.zig → lib/compiler/fmt.zig
File renamed without changes
lib/std/zig/reduce.zig → lib/compiler/reduce.zig
File renamed without changes
lib/test_runner.zig → lib/compiler/test_runner.zig
File renamed without changes
src/main.zig
@@ -2739,6 +2739,7 @@ fn buildOutputType(
             .paths = .{
                 .root = .{
                     .root_dir = zig_lib_directory,
+                    .sub_path = "compiler",
                 },
                 .root_src_path = "test_runner.zig",
             },
@@ -5385,7 +5386,10 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
                 },
                 .root_src_path = fs.path.basename(runner),
             } else .{
-                .root = .{ .root_dir = zig_lib_directory },
+                .root = .{
+                    .root_dir = zig_lib_directory,
+                    .sub_path = "compiler",
+                },
                 .root_src_path = "build_runner.zig",
             };
 
@@ -5767,7 +5771,7 @@ fn jitCmd(
         const main_mod_paths: Package.Module.CreateOptions.Paths = .{
             .root = .{
                 .root_dir = zig_lib_directory,
-                .sub_path = "std/zig",
+                .sub_path = "compiler",
             },
             .root_src_path = root_src_path,
         };