Skip to content

Commit da643f5

Browse files
committed
[compiler] conditional remove cunit check
1 parent d930ce7 commit da643f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vendor/ocaml/driver/compenv.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ let is_unit_name name =
7474
;;
7575

7676
let check_unit_name ppf filename name =
77+
#if undefined BS_NO_COMPILER_PATCH then
78+
()
79+
#else
7780
if not (is_unit_name name) then
7881
Location.print_warning (Location.in_file filename) ppf
7982
(Warnings.Bad_module_name name);;
80-
83+
#end
8184
(* Compute name of module from output file name *)
8285
let module_of_filename ppf inputfile outputprefix =
8386
let basename = Filename.basename outputprefix in

0 commit comments

Comments
 (0)