From b619d86665f351f143f10dfca16eeb357bb78be0 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 23 Apr 2025 07:31:38 -0400 Subject: use InstallHeader function to install the header --- build.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build.zig b/build.zig index 1708ce0..5888224 100644 --- a/build.zig +++ b/build.zig @@ -59,12 +59,7 @@ pub fn build(b: *std.Build) void { b.installArtifact(dynamic_lib); // C Headers - const c_header = b.addInstallFileWithDir( - b.path("include/zaprus.h"), - .header, - "zaprus.h", - ); - + const c_header = b.addInstallHeaderFile(b.path("include/zaprus.h"), "zaprus.h"); b.getInstallStep().dependOn(&c_header.step); // This creates another `std.Build.Step.Compile`, but this one builds an executable -- cgit