Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions jscomp/bin/bsdep.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20550,9 +20550,8 @@ let is_unit_name name =
;;

let check_unit_name ppf filename name =
if not (is_unit_name name) then
Location.print_warning (Location.in_file filename) ppf
(Warnings.Bad_module_name name);;

()

(* Compute name of module from output file name *)
let module_of_filename ppf inputfile outputprefix =
Expand Down
5 changes: 2 additions & 3 deletions jscomp/bin/whole_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20319,9 +20319,8 @@ let is_unit_name name =
;;

let check_unit_name ppf filename name =
if not (is_unit_name name) then
Location.print_warning (Location.in_file filename) ppf
(Warnings.Bad_module_name name);;

()

(* Compute name of module from output file name *)
let module_of_filename ppf inputfile outputprefix =
Expand Down
5 changes: 4 additions & 1 deletion vendor/ocaml/driver/compenv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@ let is_unit_name name =
;;

let check_unit_name ppf filename name =
#if undefined BS_NO_COMPILER_PATCH then
()
#else
if not (is_unit_name name) then
Location.print_warning (Location.in_file filename) ppf
(Warnings.Bad_module_name name);;

#end
(* Compute name of module from output file name *)
let module_of_filename ppf inputfile outputprefix =
let basename = Filename.basename outputprefix in
Expand Down