Skip to content

Commit

Permalink
[hxb] only consider modules from same context for sig deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 8, 2024
1 parent 51c9f78 commit 52dbe39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/hxb/hxbWriter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2266,7 +2266,7 @@ module HxbWriter = struct
sig_deps := PMap.add mdep.m_id dep !sig_deps;
) writer.sig_deps;
PMap.iter (fun id mdep -> match mdep.md_kind, mdep.md_origin with
| (MCode | MExtern), MDepFromMacro -> sig_deps := PMap.add id mdep !sig_deps;
| (MCode | MExtern), MDepFromMacro when mdep.md_sign = m.m_extra.m_sign -> sig_deps := PMap.add id mdep !sig_deps;
| _ -> ()
) m.m_extra.m_deps;
m.m_extra.m_sig_deps <- Some !sig_deps;
Expand Down

0 comments on commit 52dbe39

Please sign in to comment.