Skip to content

Commit

Permalink
feat: enable x86 cpu features
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Jul 19, 2024
1 parent fb31668 commit 84c3167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});

var flags = std.BoundedArray([]const u8, 4){};
var flags = std.BoundedArray([]const u8, 3){};
flags.appendSliceAssumeCapacity(&FLAGS);
if (target.result.cpu.arch.isX86()) {
flags.appendSliceAssumeCapacity(&.{ "-msse2", "-mssse3" });
}
if (use_curl) {
lib.linkSystemLibrary("curl");
flags.appendAssumeCapacity("-DCFITSIO_HAVE_CURL");
Expand Down

0 comments on commit 84c3167

Please sign in to comment.