Skip to content

Commit

Permalink
Fix dune files (#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Jun 28, 2022
1 parent 95d8a77 commit 2cb5886
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vendored-omp/tools/add_special_comments.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let collect_insertions structure =
(String.concat ~sep:", " (List.map l ~f:to_string))
in
Printf.ksprintf (add_after ~loc:name.loc)
" (*IF_CURRENT = %s%s.%s *)" params (Option.value module_name.txt ~default:"X") name.txt)
" (*IF_CURRENT = %s%s.%s *)" params (match module_name.txt with None -> "X" | Some x -> x) name.txt)
| _ -> ())
| _ -> ());
List.sort !insertions ~cmp:(fun (a, _) (b, _) -> compare a b)
Expand Down
15 changes: 13 additions & 2 deletions src/vendored-omp/tools/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
(executable
(name add_special_comments)
(modules add_special_comments)
(libraries compiler-libs.common compiler-libs.bytecomp)
(flags :standard -w -3)
(enabled_if
(and
(>= %{ocaml_version} 4.13)
(< %{ocaml_version} 4.14))))


(executables
(names add_special_comments pp)
(modules add_special_comments pp pp_rewrite)
(names pp)
(modules pp pp_rewrite)
(libraries compiler-libs.common compiler-libs.bytecomp)
(flags :standard -w -3))

Expand Down

0 comments on commit 2cb5886

Please sign in to comment.