Skip to content

Commit d64b813

Browse files
committed
fix(ci): change optimize to ReleaseFast
1 parent 1c9ae73 commit d64b813

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: mlugg/setup-zig@v1
2222

2323
- name: Run `build`
24-
run: zig build
24+
run: zig build -Doptimize=ReleaseFast
2525

2626
fmt:
2727
runs-on: ubuntu-latest

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void {
2222
const AFLplusplus_inc_path = AFLplusplus_dep.path("include/");
2323

2424
// Common flags
25-
var flags = std.BoundedArray([]const u8, 15){};
25+
var flags = std.BoundedArray([]const u8, 12){};
2626
flags.appendSliceAssumeCapacity(&EXE_FLAGS);
2727
flags.appendSliceAssumeCapacity(&.{ lib_path_flag, bin_path_flag });
2828
if (target.result.cpu.arch.isX86()) {
@@ -249,7 +249,7 @@ pub fn build(b: *std.Build) void {
249249

250250
network_client_exe_util.addCSourceFile(.{
251251
.file = AFLplusplus_utl_path.path(b, "afl_network_proxy/afl-network-client.c"),
252-
.flags = &(.{ "-Wno-pointer-sign", lib_path_flag, bin_path_flag }),
252+
.flags = flags.constSlice(),
253253
});
254254
if (use_deflate) {
255255
network_client_exe_util.root_module.addCMacro("USE_DEFLATE", "1");
@@ -269,7 +269,7 @@ pub fn build(b: *std.Build) void {
269269
});
270270
network_server_exe_util.addCSourceFile(.{
271271
.file = AFLplusplus_utl_path.path(b, "afl_network_proxy/afl-network-server.c"),
272-
.flags = &(.{ "-Wno-pointer-sign", lib_path_flag, bin_path_flag }),
272+
.flags = flags.constSlice(),
273273
});
274274
if (use_deflate) {
275275
network_server_exe_util.root_module.addCMacro("USE_DEFLATE", "1");

0 commit comments

Comments
 (0)