Skip to content

Commit

Permalink
Update for zig-master
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jan 4, 2024
1 parent ce0a1e5 commit 0687b86
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pub fn build(b: *std.Build) void {
.name = "libaegis",
.target = target,
.optimize = optimize,
.strip = true,
});

lib.linkLibC();
lib.strip = true;

const lib_options = b.addOptions();

Expand Down Expand Up @@ -71,11 +71,7 @@ pub fn build(b: *std.Build) void {
"src/common/softaes.c",
};

if (@hasDecl(std.Build.Step.Compile, "AddCSourceFilesOptions")) {
lib.addCSourceFiles(.{ .files = source_files });
} else {
lib.addCSourceFiles(source_files, &.{});
}
lib.addCSourceFiles(.{ .files = source_files });

// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
Expand Down

0 comments on commit 0687b86

Please sign in to comment.