File 0159-Don-t-include-enabled_features-tuple-when-there-are-.patch of Package erlang
From 61abf850b7b6743c1bdbdc5b19899fe9d67c145e Mon Sep 17 00:00:00 2001
From: Simon Cornish <7t9jna402@sneakemail.com>
Date: Thu, 27 Feb 2025 11:24:42 -0800
Subject: [PATCH] Don't include enabled_features tuple when there are none
---
lib/compiler/src/compile.erl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 978553e56b..6be93545d2 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1905,6 +1905,8 @@ do_parse_module(DefEncoding, #compile{ifile=File,options=Opts,dir=Dir}=St) ->
-define(META_USED_FEATURES, enabled_features).
-define(META_CHUNK_NAME, <<"Meta">>).
+metadata_add_features([], St) ->
+ St;
metadata_add_features(Ftrs, #compile{options = CompOpts,
extra_chunks = Extra} = St) ->
MetaData =
--
2.43.0