@@ -3038,8 +3038,8 @@ fn buildOutputType(
3038
3038
};
3039
3039
3040
3040
const root_mod = if (arg_mode == .zig_test ) root_mod : {
3041
- const test_mod = if (test_runner_path ) | test_runner | test_mod : {
3042
- const test_mod = try Package .Module .create (arena , .{
3041
+ const test_mod = if (test_runner_path ) | test_runner |
3042
+ try Package .Module .create (arena , .{
3043
3043
.global_cache_directory = global_cache_directory ,
3044
3044
.paths = .{
3045
3045
.root = .{
@@ -3055,27 +3055,26 @@ fn buildOutputType(
3055
3055
.parent = main_mod ,
3056
3056
.builtin_mod = main_mod .getBuiltinDependency (),
3057
3057
.builtin_modules = null , // `builtin_mod` is specified
3058
- });
3059
- test_mod .deps = try main_mod .deps .clone (arena );
3060
- break :test_mod test_mod ;
3061
- } else try Package .Module .create (arena , .{
3062
- .global_cache_directory = global_cache_directory ,
3063
- .paths = .{
3064
- .root = .{
3065
- .root_dir = zig_lib_directory ,
3066
- .sub_path = "compiler" ,
3058
+ })
3059
+ else
3060
+ try Package .Module .create (arena , .{
3061
+ .global_cache_directory = global_cache_directory ,
3062
+ .paths = .{
3063
+ .root = .{
3064
+ .root_dir = zig_lib_directory ,
3065
+ .sub_path = "compiler" ,
3066
+ },
3067
+ .root_src_path = "test_runner.zig" ,
3067
3068
},
3068
- .root_src_path = "test_runner.zig" ,
3069
- },
3070
- .fully_qualified_name = "root" ,
3071
- .cc_argv = &.{},
3072
- .inherited = .{},
3073
- .global = create_module .resolved_options ,
3074
- .parent = main_mod ,
3075
- .builtin_mod = main_mod .getBuiltinDependency (),
3076
- .builtin_modules = null , // `builtin_mod` is specified
3077
- });
3078
-
3069
+ .fully_qualified_name = "root" ,
3070
+ .cc_argv = &.{},
3071
+ .inherited = .{},
3072
+ .global = create_module .resolved_options ,
3073
+ .parent = main_mod ,
3074
+ .builtin_mod = main_mod .getBuiltinDependency (),
3075
+ .builtin_modules = null , // `builtin_mod` is specified
3076
+ });
3077
+ test_mod .deps = try main_mod .deps .clone (arena );
3079
3078
break :root_mod test_mod ;
3080
3079
} else main_mod ;
3081
3080
0 commit comments