From 027e7c1c49fbabf6e199cbd585f0b4f9ec1eb77e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 27 Dec 2023 17:52:12 -0700 Subject: [PATCH] test.link.glibc_compat: fix invalid build system API usage --- test/link/glibc_compat/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/link/glibc_compat/build.zig b/test/link/glibc_compat/build.zig index 6bafb07152..bb8d5d056d 100644 --- a/test/link/glibc_compat/build.zig +++ b/test/link/glibc_compat/build.zig @@ -7,11 +7,11 @@ pub fn build(b: *std.Build) void { for ([_][]const u8{ "aarch64-linux-gnu.2.27", "aarch64-linux-gnu.2.34" }) |t| { const exe = b.addExecutable(.{ .name = t, - .root_source_file = .{ .path = "main.c" }, .target = b.resolveTargetQuery(std.Target.Query.parse( .{ .arch_os_abi = t }, ) catch unreachable), }); + exe.addCSourceFile(.{ .file = .{ .path = "main.c" } }); exe.linkLibC(); // TODO: actually test the output _ = exe.getEmittedBin();