diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-23 07:31:38 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 18:03:06 -0400 |
commit | ce21b94a434467ba748a310604b6efd982b680ed (patch) | |
tree | 9d4ca8d991af2ba7dd920763792acd2b1ecb93eb | |
parent | c0e466b28ae64ac72585617cb1935b272fec9dbb (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 |