| ... | @@ -19,6 +19,10 @@ var argc_argv_ptr: [*]usize = undefined; | ... | @@ -19,6 +19,10 @@ var argc_argv_ptr: [*]usize = undefined; |
| 19 | const start_sym_name = if (native_arch.isMIPS()) "__start" else "_start"; | 19 | const start_sym_name = if (native_arch.isMIPS()) "__start" else "_start"; |
| 20 | | 20 | |
| 21 | comptime { | 21 | comptime { |
| | 22 | // No matter what, we import the root file, so that any export, test, comptime |
| | 23 | // decls there get run. |
| | 24 | _ = root; |
| | 25 | |
| 22 | // The self-hosted compiler is not fully capable of handling all of this start.zig file. | 26 | // The self-hosted compiler is not fully capable of handling all of this start.zig file. |
| 23 | // Until then, we have simplified logic here for self-hosted. TODO remove this once | 27 | // Until then, we have simplified logic here for self-hosted. TODO remove this once |
| 24 | // self-hosted is capable enough to handle all of the real start.zig logic. | 28 | // self-hosted is capable enough to handle all of the real start.zig logic. |