Skip to content

Commit 4fbed9f

Browse files
committed
Consider significant chunks from Erlang/OTP 26
1 parent 1dbf121 commit 4fbed9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/release.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ defmodule Mix.Release do
6767
@default_apps [kernel: :permanent, stdlib: :permanent, elixir: :permanent, sasl: :permanent]
6868
@safe_modes [:permanent, :temporary, :transient]
6969
@unsafe_modes [:load, :none]
70-
@significant_chunks ~w(Atom AtU8 Attr Code StrT ImpT ExpT FunT LitT Line)c
70+
@additional_chunks ~w(Attr)c
7171
@copy_app_dirs ["priv"]
7272

7373
@doc false
@@ -879,7 +879,7 @@ defmodule Mix.Release do
879879
@spec strip_beam(binary(), keyword()) :: {:ok, binary()} | {:error, :beam_lib, term()}
880880
def strip_beam(binary, options \\ []) when is_list(options) do
881881
chunks_to_keep = options[:keep] |> List.wrap() |> Enum.map(&String.to_charlist/1)
882-
all_chunks = Enum.uniq(@significant_chunks ++ chunks_to_keep)
882+
all_chunks = Enum.uniq(@additional_chunks ++ :beam_lib.significant_chunks() ++ chunks_to_keep)
883883
compress? = Keyword.get(options, :compress, false)
884884

885885
case :beam_lib.chunks(binary, all_chunks, [:allow_missing_chunks]) do

0 commit comments

Comments
 (0)