Commit 010494d8af

Vexu <15308111+Vexu@users.noreply.github.com>
2019-11-23 22:44:57
only test stage2 on linux
1 parent 89310da
Changed files (2)
src-self-hosted/libc_installation.zig
@@ -160,9 +160,9 @@ pub const LibCInstallation = struct {
                         if (sdk.msvc_lib_dir_ptr != 0) {
                             self.msvc_lib_dir = try std.mem.dupe(allocator, u8, sdk.msvc_lib_dir_ptr[0..sdk.msvc_lib_dir_len]);
                         }
-                        try group.call(findNativeKernel32LibDir, self, sdk);
-                        try group.call(findNativeIncludeDirWindows, self, sdk);
-                        try group.call(findNativeLibDirWindows, self, sdk);
+                        try group.call(findNativeKernel32LibDir, allocator, self, sdk);
+                        try group.call(findNativeIncludeDirWindows, self, allocator, sdk);
+                        try group.call(findNativeLibDirWindows, self, allocator, sdk);
                     },
                     c.ZigFindWindowsSdkError.OutOfMemory => return error.OutOfMemory,
                     c.ZigFindWindowsSdkError.NotFound => return error.NotFound,
build.zig
@@ -73,7 +73,8 @@ pub fn build(b: *Builder) !void {
     const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
     const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
     const skip_self_hosted = b.option(bool, "skip-self-hosted", "Main test suite skips building self hosted compiler") orelse false;
-    if (!skip_self_hosted) {
+    if (!skip_self_hosted and builtin.os == .linux) {
+        // TODO evented I/O other OS'spu
         test_step.dependOn(&exe.step);
     }