authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-07 19:16:54+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-07 22:42:59+02:00
loga226aef36cc441be4af675e24b3e672fe3fe2d5a
tree69821008ae49b3d69e4bdd8c2518e6993d4f468c
parent678e07b924a717e79f412b78895ead1136a722bc

test-cases: enable stage2 tests on Windows


2 files changed, 10 insertions(+), 2 deletions(-)

ci/azure/pipelines.yml+1-2
......@@ -73,8 +73,7 @@ jobs:
7373 & "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
7474 --search-prefix "$ZIGPREFIXPATH" `
7575 -Dstatic-llvm `
76 -Dskip-non-native `
77 -Dskip-stage2-tests
76 -Dskip-non-native
7877 CheckLastExitCode
7978 name: test
8079 displayName: 'Test'
src/test.zig+9
......@@ -177,6 +177,8 @@ const TestManifestConfigDefaults = struct {
177177 inline for (&[_][]const u8{ "x86_64", "aarch64" }) |arch| {
178178 defaults = defaults ++ arch ++ "-macos" ++ ",";
179179 }
180 // Windows
181 defaults = defaults ++ "x86_64-windows" ++ ",";
180182 // Wasm
181183 defaults = defaults ++ "wasm32-wasi";
182184 return defaults;
......@@ -1546,6 +1548,13 @@ pub const TestContext = struct {
15461548 .self_exe_path = std.testing.zig_exe_path,
15471549 // TODO instead of turning off color, pass in a std.Progress.Node
15481550 .color = .off,
1551 // TODO: We set these to no so that we don't fallback to LLD for incremental linking context. This is because
1552 // our own COFF linker doesn't yet support these options.
1553 .want_unwind_tables = switch (case.backend) {
1554 .stage2 => if (target.os.tag == .windows) false else null,
1555 else => null,
1556 },
1557 .emit_implib = null,
15491558 });
15501559 defer comp.destroy();
15511560