From bbdf8eaf75d651fe26da2cd59bd2ee8795a0d556 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Fri, 14 Nov 2025 22:39:12 +0100 Subject: build: change -Dskip-macos to -Dskip-darwin and make it cover all darwin OSs --- test/tests.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/tests.zig') diff --git a/test/tests.zig b/test/tests.zig index a6931c408f..75e5d4439a 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -2234,7 +2234,7 @@ const ModuleTestOptions = struct { skip_freebsd: bool, skip_netbsd: bool, skip_windows: bool, - skip_macos: bool, + skip_darwin: bool, skip_linux: bool, skip_llvm: bool, skip_libc: bool, @@ -2269,7 +2269,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { if (options.skip_freebsd and test_target.target.os_tag == .freebsd) continue; if (options.skip_netbsd and test_target.target.os_tag == .netbsd) continue; if (options.skip_windows and test_target.target.os_tag == .windows) continue; - if (options.skip_macos and test_target.target.os_tag == .macos) continue; + if (options.skip_darwin and test_target.target.os_tag != null and test_target.target.os_tag.?.isDarwin()) continue; if (options.skip_linux and test_target.target.os_tag == .linux) continue; const would_use_llvm = wouldUseLlvm(test_target.use_llvm, test_target.target, test_target.optimize_mode); @@ -2506,7 +2506,7 @@ const CAbiTestOptions = struct { skip_freebsd: bool, skip_netbsd: bool, skip_windows: bool, - skip_macos: bool, + skip_darwin: bool, skip_linux: bool, skip_llvm: bool, skip_release: bool, @@ -2525,7 +2525,7 @@ pub fn addCAbiTests(b: *std.Build, options: CAbiTestOptions) *Step { if (options.skip_freebsd and c_abi_target.target.os_tag == .freebsd) continue; if (options.skip_netbsd and c_abi_target.target.os_tag == .netbsd) continue; if (options.skip_windows and c_abi_target.target.os_tag == .windows) continue; - if (options.skip_macos and c_abi_target.target.os_tag == .macos) continue; + if (options.skip_darwin and c_abi_target.target.os_tag != null and c_abi_target.target.os_tag.?.isDarwin()) continue; if (options.skip_linux and c_abi_target.target.os_tag == .linux) continue; const would_use_llvm = wouldUseLlvm(c_abi_target.use_llvm, c_abi_target.target, .Debug); -- cgit v1.2.3