diff options
Diffstat (limited to 'src/bun.js/bindings/header-gen.zig')
-rw-r--r-- | src/bun.js/bindings/header-gen.zig | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/bun.js/bindings/header-gen.zig b/src/bun.js/bindings/header-gen.zig index 65ee15786..089506a8f 100644 --- a/src/bun.js/bindings/header-gen.zig +++ b/src/bun.js/bindings/header-gen.zig @@ -621,7 +621,16 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp const Generator = C_Generator; validateGenerator(Generator); var file_writer = file.writer(); - file_writer.print("// clang-format off\n//-- AUTOGENERATED FILE -- {d}\n", .{std.time.timestamp()}) catch unreachable; + file_writer.writeAll("// clang-format off\n" ++ + \\//-- GENERATED FILE. Do not edit -- + \\// + \\// To regenerate this file, run: + \\// + \\// make headers + \\// + \\//-- GENERATED FILE. Do not edit -- + \\ + ) catch unreachable; file.writeAll( \\#pragma once \\ @@ -652,7 +661,16 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp \\ ) catch {}; - impl.writer().print("//-- AUTOGENERATED FILE -- {d}\n// clang-format off\n", .{std.time.timestamp()}) catch unreachable; + impl.writer().writeAll("// clang-format off\n" ++ + \\//-- GENERATED FILE. Do not edit -- + \\// + \\// To regenerate this file, run: + \\// + \\// make headers + \\// + \\//-- GENERATED FILE. Do not edit -- + \\ + ) catch unreachable; impl.writer().writeAll( \\#pragma once \\ |