@@ -3124,8 +3124,8 @@ fn buildOutputType(
31243124
31253125 const root_mod = switch (arg_mode ) {
31263126 .zig_test , .zig_test_obj = > root_mod : {
3127- const test_mod = if (test_runner_path ) | test_runner | test_mod : {
3128- const test_mod = try Package .Module .create (arena , .{
3127+ const test_mod = if (test_runner_path ) | test_runner |
3128+ try Package .Module .create (arena , .{
31293129 .global_cache_directory = global_cache_directory ,
31303130 .paths = .{
31313131 .root = .{
@@ -3141,27 +3141,27 @@ fn buildOutputType(
31413141 .parent = main_mod ,
31423142 .builtin_mod = main_mod .getBuiltinDependency (),
31433143 .builtin_modules = null , // `builtin_mod` is specified
3144- });
3145- test_mod .deps = try main_mod .deps .clone (arena );
3146- break :test_mod test_mod ;
3147- } else try Package .Module .create (arena , .{
3148- .global_cache_directory = global_cache_directory ,
3149- .paths = .{
3150- .root = .{
3151- .root_dir = zig_lib_directory ,
3152- .sub_path = "compiler" ,
3144+ })
3145+ else
3146+ try Package .Module .create (arena , .{
3147+ .global_cache_directory = global_cache_directory ,
3148+ .paths = .{
3149+ .root = .{
3150+ .root_dir = zig_lib_directory ,
3151+ .sub_path = "compiler" ,
3152+ },
3153+ .root_src_path = "test_runner.zig" ,
31533154 },
3154- .root_src_path = "test_runner.zig" ,
3155- },
3156- .fully_qualified_name = "root" ,
3157- .cc_argv = &.{},
3158- .inherited = .{},
3159- .global = create_module .resolved_options ,
3160- .parent = main_mod ,
3161- .builtin_mod = main_mod .getBuiltinDependency (),
3162- .builtin_modules = null , // `builtin_mod` is specified
3163- });
3155+ .fully_qualified_name = "root" ,
3156+ .cc_argv = &.{},
3157+ .inherited = .{},
3158+ .global = create_module .resolved_options ,
3159+ .parent = main_mod ,
3160+ .builtin_mod = main_mod .getBuiltinDependency (),
3161+ .builtin_modules = null , // `builtin_mod` is specified
3162+ });
31643163
3164+ test_mod .deps = try main_mod .deps .clone (arena );
31653165 break :root_mod test_mod ;
31663166 },
31673167 else = > main_mod ,
0 commit comments