Skip to content

Commit

Permalink
Preserve source when building with deterministic option
Browse files Browse the repository at this point in the history
  • Loading branch information
delitrem committed Jul 2, 2024
1 parent e424399 commit 3b1835d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/compiler/src/compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2588,6 +2588,8 @@ compile_info(File, CompilerOpts, Opts) ->
case paranoid_absname(File) of
[_|_] = Source when not IsSlim, not IsDeterministic ->
[{source,Source} | Info0];
[_|_] = Source when IsDeterministic ->
[{source,filename:basename(Source)} | Info0];
_ ->
Info0
end,
Expand Down

0 comments on commit 3b1835d

Please sign in to comment.