summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-23 07:31:38 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-26 09:44:44 -0400
commitb619d86665f351f143f10dfca16eeb357bb78be0 (patch)
tree0aab8814a8a4990e3546816f4fc62159f899941e
parent89bfbe485454ee87712364fab05024cec305aad4 (diff)
use InstallHeader function to install the header
-rw-r--r--build.zig7
1 files changed, 1 insertions, 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