| ... | ... | @@ -2511,6 +2511,13 @@ fn buildOutputType( |
| 2511 | 2511 | fatal("`zig test` expects a zig source file argument", .{}); |
| 2512 | 2512 | } |
| 2513 | 2513 | |
| 2514 | if (show_builtin and root_src_file == null) { |
| 2515 | // Without this, there will be no main module created and no zig |
| 2516 | // compilation unit, and therefore also no builtin.zig contents |
| 2517 | // created. |
| 2518 | root_src_file = "dummy.zig"; |
| 2519 | } |
| 2520 | |
| 2514 | 2521 | if (root_src_file) |unresolved_src_path| { |
| 2515 | 2522 | if (create_module.modules.count() != 0) { |
| 2516 | 2523 | fatal("main module provided both by '--mod {s} {}{s}' and by positional argument '{s}'", .{ |