commit 7fa719ef077afdc1038cd03e6f52a0e64adf221a (tree)
parent 29f3d1185cd39daa6b0cbe70ecb05543dbeb6394
Author: kcbanner <kcbanner@gmail.com>
Date: Thu, 11 Jun 2026 02:22:44 -0400
test/standalone/shared_library: fix incorrect no_llvm check, skip on aarch64
Diffstat:
2 files changed, 18 insertions(+), 16 deletions(-)
diff --git 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
@@ -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,