diff --git a/test/standalone/shared_library/build.zig b/test/standalone/shared_library/build.zig index a7a55c28a20b97f8493a964d468fe4477d82c444..20b9df685f8b58798eec82a8d2559b07689e66e4 100644 --- a/test/standalone/shared_library/build.zig +++ b/test/standalone/shared_library/build.zig @@ -38,14 +38,15 @@ pub fn build(b: *std.Build) void { lib_use_llvm, exe_use_llvm, ) |exe_name, lib_name, dyn_libc, lib_llvm, exe_llvm| { - const use_llvm = lib_llvm or exe_llvm; - if (!use_llvm and target.result.os.tag == .macos) continue; // TODO - if (!use_llvm and target.result.os.tag == .freebsd) continue; // TODO - if (!use_llvm and target.result.os.tag == .netbsd) continue; // TODO - if (!use_llvm and target.result.os.tag == .openbsd) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .loongarch64) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .powerpc64le) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .s390x) continue; // TODO + const no_llvm = !lib_llvm or !exe_llvm; + if (no_llvm and target.result.os.tag == .macos) continue; // TODO + if (no_llvm and target.result.os.tag == .freebsd) continue; // TODO + if (no_llvm and target.result.os.tag == .netbsd) continue; // TODO + if (no_llvm and target.result.os.tag == .openbsd) continue; // TODO + if (no_llvm and target.result.cpu.arch == .aarch64) continue; // TODO + if (no_llvm and target.result.cpu.arch == .loongarch64) continue; // TODO + if (no_llvm and target.result.cpu.arch == .powerpc64le) continue; // TODO + if (no_llvm and target.result.cpu.arch == .s390x) continue; // TODO const lib = b.addLibrary(.{ .linkage = .dynamic, diff --git a/test/standalone/static_c_lib/build.zig b/test/standalone/static_c_lib/build.zig index a1e5c034fe10e4ebdd918264185e410964db9e73..5b35871dceca1a00abbac632adab8f0edc4add69 100644 --- a/test/standalone/static_c_lib/build.zig +++ b/test/standalone/static_c_lib/build.zig @@ -38,14 +38,15 @@ pub fn build(b: *std.Build) void { lib_use_llvm, exe_use_llvm, ) |exe_name, lib_name, dyn_libc, lib_llvm, exe_llvm| { - const use_llvm = lib_llvm or exe_llvm; - if (!use_llvm and target.result.os.tag == .macos) continue; // TODO - if (!use_llvm and target.result.os.tag == .freebsd) continue; // TODO - if (!use_llvm and target.result.os.tag == .netbsd) continue; // TODO - if (!use_llvm and target.result.os.tag == .openbsd) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .loongarch64) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .powerpc64le) continue; // TODO - if (!use_llvm and target.result.cpu.arch == .s390x) continue; // TODO + const no_llvm = !lib_llvm or !exe_llvm; + if (no_llvm and target.result.os.tag == .macos) continue; // TODO + if (no_llvm and target.result.os.tag == .freebsd) continue; // TODO + if (no_llvm and target.result.os.tag == .netbsd) continue; // TODO + if (no_llvm and target.result.os.tag == .openbsd) continue; // TODO + if (no_llvm and target.result.cpu.arch == .aarch64) continue; // TODO + if (no_llvm and target.result.cpu.arch == .loongarch64) continue; // TODO + if (no_llvm and target.result.cpu.arch == .powerpc64le) continue; // TODO + if (no_llvm and target.result.cpu.arch == .s390x) continue; // TODO const foo = b.addLibrary(.{ .linkage = .static,