commit a226aef36cc441be4af675e24b3e672fe3fe2d5a (tree)
parent 678e07b924a717e79f412b78895ead1136a722bc
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Wed, 7 Sep 2022 19:16:54 +0200
test-cases: enable stage2 tests on Windows
Diffstat:
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ci/azure/pipelines.yml b/ci/azure/pipelines.yml
@@ -73,8 +73,7 @@ jobs:
& "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
--search-prefix "$ZIGPREFIXPATH" `
-Dstatic-llvm `
- -Dskip-non-native `
- -Dskip-stage2-tests
+ -Dskip-non-native
CheckLastExitCode
name: test
displayName: 'Test'
diff --git a/src/test.zig b/src/test.zig
@@ -177,6 +177,8 @@ const TestManifestConfigDefaults = struct {
inline for (&[_][]const u8{ "x86_64", "aarch64" }) |arch| {
defaults = defaults ++ arch ++ "-macos" ++ ",";
}
+ // Windows
+ defaults = defaults ++ "x86_64-windows" ++ ",";
// Wasm
defaults = defaults ++ "wasm32-wasi";
return defaults;
@@ -1546,6 +1548,13 @@ pub const TestContext = struct {
.self_exe_path = std.testing.zig_exe_path,
// TODO instead of turning off color, pass in a std.Progress.Node
.color = .off,
+ // TODO: We set these to no so that we don't fallback to LLD for incremental linking context. This is because
+ // our own COFF linker doesn't yet support these options.
+ .want_unwind_tables = switch (case.backend) {
+ .stage2 => if (target.os.tag == .windows) false else null,
+ else => null,
+ },
+ .emit_implib = null,
});
defer comp.destroy();