Skip to content

Commit

Permalink
Merge pull request #527 from FStarLang/protz_internal_headers
Browse files Browse the repository at this point in the history
Fix mistake in #include generation for internal headers
  • Loading branch information
msprotz authored Jan 31, 2025
2 parents e098c05 + 9d54cd1 commit c92ffed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/Bundles.ml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ let direct_dependencies_with_internal files file_of =
| `Internal -> List.mem Common.Internal flags

method! visit_DFunction env cc flags n_cgs n ret name binders body =
(* KPrint.bprintf "function %a: concern us=%b %b %b \n" *)
(* PrintAst.Ops.plid name *)
(* (self#concerns_us flags) *)
(* (List.mem Common.Internal flags) (List.mem Common.Private flags); *)
if self#concerns_us flags then
if is_inline_static name then
super#visit_DFunction env cc flags n_cgs n ret name binders body
Expand Down
2 changes: 1 addition & 1 deletion lib/Output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ let write_h files public_headers (deps: Bundles.all_deps Bundles.StringMap.t) =
let internal_headers = List.map (fun f -> "internal/" ^ f) internal in
let headers =
if Bundles.StringSet.mem name public_headers then
("../" ^ name) :: internal_headers
("../" ^ name) :: public @ internal_headers
else
public @ internal_headers
in
Expand Down

0 comments on commit c92ffed

Please sign in to comment.