3 ms·
the lines in question: const fuzz_exe_path = try std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, fuzz_executable_name }); // We want `afl-
by AndyKelley 5y ago
the lines in question:
const fuzz_exe_path = try std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, fuzz_executable_name });
// We want `afl-clang-lto -o path/to/output path/to/object.o`
const fuzz_compile = b.addSystemCommand(&[_][]const u8{ "afl-clang-lto", "-o" });
can be updated to newer syntax:
const fuzz_exe_path = try std.fs.path.join(b.allocator, &.{ b.cache_root, fuzz_executable_name });
// We want `afl-clang-lto -o path/to/output path/to/object.o`
const fuzz_compile = b.addSystemCommand(&.{ "afl-clang-lto", "-o" });
docs: https://ziglang.org/documentation/master/#Anonymous-List-Literals https://ziglang.org/documentation/master/#Anonymous-List-Lit...
added in zig 0.6.0: https://ziglang.org/download/0.6.0/release-notes.html#Tuples-Added-Var-Args-Removed https://ziglang.org/download/0.6.0/release-notes.html#Tuples...
- squeek502 5y agoNice, didn't know list literals could be used for that. Makes sense, though.