From 945ed64971a197477fad61abf99e2271028d5057 Mon Sep 17 00:00:00 2001 From: Tomas Abrahamsson Date: Mon, 19 Feb 2024 17:24:46 +0100 Subject: [PATCH] Add @generated to the output erl The intention is to mitigate performance issues with the Erlang laguage platform. --- src/gpb_compile.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpb_compile.erl b/src/gpb_compile.erl index d5ecf33..61b0bc7 100644 --- a/src/gpb_compile.erl +++ b/src/gpb_compile.erl @@ -4392,7 +4392,8 @@ format_erl(Mod, Defs, DefsNoRenamings, DefsForIntrospect, DoDecoders = gpb_lib:get_gen_decoders(Opts), CompileOptsStr = get_erlc_compile_options_str(Opts), gpb_lib:iolist_to_utf8_or_escaped_binary( - [?f("%% @private~n" + [?f("%% % this file is @generated~n" + "%% @private~n" "%% Automatically generated, do not edit~n" "%% Generated by ~p version ~s~n" "%% Version source: ~s~n",