adding more parser — starts breaking the build

This commit is contained in:
2024-12-25 23:44:33 +02:00
parent ef3ef64abd
commit 6ae7d7320d
5 changed files with 292 additions and 10 deletions

View File

@@ -27,7 +27,6 @@ const cflags = &[_][]const u8{
"-Wformat=2",
"-fno-common",
"-Wconversion",
"-Wswitch-enum",
"-Wuninitialized",
"-Wdouble-promotion",
"-fstack-protector-all",
@@ -80,7 +79,7 @@ pub fn build(b: *std.Build) !void {
const lint_step = b.step("lint", "Run linters");
const clang_format = b.addSystemCommand(&.{"clang-format"});
clang_format.addArgs(&.{ "--style=webkit", "-i" });
clang_format.addArgs(&.{ "--style=webkit", "--verbose", "-Werror", "-i" });
for (all_c_files ++ headers) |f| clang_format.addFileArg(b.path(f));
lint_step.dependOn(&clang_format.step);