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-27 16:18:48 -0400
commit733deeb6e15bde938dc6449933a362644c7aa2ca (patch)
tree022c1c1665c3cf1512de80c2ca6b79dfec35cd3a
parent8540dfb5b95605938c10901320a55655407b309e (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