Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub fn build(b: *std.Build) !void {
var c_flags = std.ArrayList([]const u8).init(b.allocator);
defer c_flags.deinit();

try c_flags.append("-O2");
try c_flags.append("-fno-builtin");
try c_flags.append("-Wno-unused-function");
try c_flags.append("-Wno-unused-command-line-argument");
Expand Down Expand Up @@ -38,6 +39,8 @@ pub fn build(b: *std.Build) !void {
}
}

if (target.result.cpu.arch == .aarch64) lib.root_module.addCMacro("__ARM_FEATURE_CRYPTO", "1");

if (target.result.cpu.arch != .x86_64 and
target.result.cpu.arch != .aarch64)
{
Expand Down