diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-23 07:31:38 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-26 09:44:44 -0400 |
commit | b619d86665f351f143f10dfca16eeb357bb78be0 (patch) | |
tree | 0aab8814a8a4990e3546816f4fc62159f899941e | |
parent | 89bfbe485454ee87712364fab05024cec305aad4 (diff) |
use InstallHeader function to install the header
-rw-r--r-- | build.zig | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |