| author | |
| committer | |
| log | 83b7dbe52f75161a2ac6f5d8f39b275fd9473c15 |
| tree | 236c7785ad30322d04bbfef1bcbac9117db65aa5 |
| parent | c91929090db337810aa3b55f9bd26f5fd0af4fff |
Enabling start.zig logic breaks incremental compilation
See #151745 files changed, 15 insertions(+), 13 deletions(-)
test/cases/aarch64-macos/hello_world_with_updates.0.zig+1-1| ... | @@ -2,4 +2,4 @@ | ... | @@ -2,4 +2,4 @@ |
| 2 | // output_mode=Exe | 2 | // output_mode=Exe |
| 3 | // target=aarch64-macos | 3 | // target=aarch64-macos |
| 4 | // | 4 | // |
| 5 | // :110:9: error: root struct of file 'tmp' has no member named 'main' | 5 | // :?:?: error: root struct of file 'tmp' has no member named 'main' |
test/cases/x86_64-linux/hello_world_with_updates.0.zig+4-4| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | // output_mode=Exe | 2 | // output_mode=Exe |
| 3 | // target=x86_64-linux | 3 | // target=x86_64-linux |
| 4 | // | 4 | // |
| 5 | // :604:45: error: root struct of file 'tmp' has no member named 'main' | 5 | // :?:?: error: root struct of file 'tmp' has no member named 'main' |
| 6 | // :553:12: note: called from here | 6 | // :?:?: note: called from here |
| 7 | // :503:36: note: called from here | 7 | // :?:?: note: called from here |
| 8 | // :466:17: note: called from here | 8 | // :?:?: note: called from here |
test/cases/x86_64-macos/hello_world_with_updates.0.zig+1-1| ... | @@ -2,4 +2,4 @@ | ... | @@ -2,4 +2,4 @@ |
| 2 | // output_mode=Exe | 2 | // output_mode=Exe |
| 3 | // target=x86_64-macos | 3 | // target=x86_64-macos |
| 4 | // | 4 | // |
| 5 | // :110:9: error: root struct of file 'tmp' has no member named 'main' | 5 | // :?:?: error: root struct of file 'tmp' has no member named 'main' |
test/cases/x86_64-windows/hello_world_with_updates.0.zig+3-3| ... | @@ -2,6 +2,6 @@ | ... | @@ -2,6 +2,6 @@ |
| 2 | // output_mode=Exe | 2 | // output_mode=Exe |
| 3 | // target=x86_64-windows | 3 | // target=x86_64-windows |
| 4 | // | 4 | // |
| 5 | // :604:45: error: root struct of file 'tmp' has no member named 'main' | 5 | // :?:?: error: root struct of file 'tmp' has no member named 'main' |
| 6 | // :553:12: note: called from here | 6 | // :?:?: note: called from here |
| 7 | // :389:65: note: called from here | 7 | // :?:?: note: called from here |
test/src/Cases.zig+6-4| ... | @@ -1045,8 +1045,7 @@ pub fn main() !void { | ... | @@ -1045,8 +1045,7 @@ pub fn main() !void { |
| 1045 | var ctx = Cases.init(gpa, arena); | 1045 | var ctx = Cases.init(gpa, arena); |
| 1046 | 1046 | ||
| 1047 | var test_it = TestIterator{ .filenames = filenames.items }; | 1047 | var test_it = TestIterator{ .filenames = filenames.items }; |
| 1048 | while (test_it.next()) |maybe_batch| { | 1048 | while (try test_it.next()) |batch| { |
| 1049 | const batch = maybe_batch orelse break; | ||
| 1050 | const strategy: TestStrategy = if (batch.len > 1) .incremental else .independent; | 1049 | const strategy: TestStrategy = if (batch.len > 1) .incremental else .independent; |
| 1051 | var cases = std.ArrayList(usize).init(arena); | 1050 | var cases = std.ArrayList(usize).init(arena); |
| 1052 | 1051 | ||
| ... | @@ -1084,6 +1083,11 @@ pub fn main() !void { | ... | @@ -1084,6 +1083,11 @@ pub fn main() !void { |
| 1084 | 1083 | ||
| 1085 | for (cases.items) |case_index| { | 1084 | for (cases.items) |case_index| { |
| 1086 | const case = &ctx.cases.items[case_index]; | 1085 | const case = &ctx.cases.items[case_index]; |
| 1086 | if (strategy == .incremental and case.backend == .stage2 and case.target.getCpuArch() == .x86_64 and !case.link_libc and case.target.getOsTag() != .plan9) { | ||
| 1087 | // https://github.com/ziglang/zig/issues/15174 | ||
| 1088 | continue; | ||
| 1089 | } | ||
| 1090 | |||
| 1087 | switch (manifest.type) { | 1091 | switch (manifest.type) { |
| 1088 | .compile => { | 1092 | .compile => { |
| 1089 | case.addCompile(src); | 1093 | case.addCompile(src); |
| ... | @@ -1115,8 +1119,6 @@ pub fn main() !void { | ... | @@ -1115,8 +1119,6 @@ pub fn main() !void { |
| 1115 | } | 1119 | } |
| 1116 | } | 1120 | } |
| 1117 | } | 1121 | } |
| 1118 | } else |err| { | ||
| 1119 | return err; | ||
| 1120 | } | 1122 | } |
| 1121 | 1123 | ||
| 1122 | return runCases(&ctx, zig_exe_path); | 1124 | return runCases(&ctx, zig_exe_path); |