Skip to content

Commit aebccbd

Browse files
committed
Windows thingy
1 parent 6c6f2cf commit aebccbd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/core/js_name_of_module_id.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ let string_of_module_id
300300
| Some root ->
301301
(* The actual cmj file is in lib/bs/src/, not lib/bs/ directly
302302
Try a glob search to find it *)
303+
let (//) = Filename.concat in
303304
let rec find_in_dir dir =
304-
let full_path = Filename.concat dir cmj_file in
305+
let full_path = dir // cmj_file in
305306
if Sys.file_exists full_path then Some full_path
306307
else
307308
try
@@ -310,13 +311,13 @@ let string_of_module_id
310311
match acc with
311312
| Some _ -> acc
312313
| None ->
313-
let sub_path = Filename.concat dir subdir in
314+
let sub_path = dir // subdir in
314315
if Sys.is_directory sub_path then find_in_dir sub_path
315316
else None
316317
) None subdirs
317318
with _ -> None
318319
in
319-
let lib_bs_dir = root ^ "/lib/bs" in
320+
let lib_bs_dir = root // "lib" // "bs" in
320321
(match find_in_dir lib_bs_dir with
321322
| Some bs_path ->
322323
Some bs_path

0 commit comments

Comments
 (0)