Skip to content

Commit c69ed29

Browse files
committed
also clean binary artifact
1 parent e541dcd commit c69ed29

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

jscomp/bin/bsb.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8382,7 +8382,7 @@ let lib_bs = "lib" // "bs"
83828382
let lib_amdjs = "lib" // "amdjs"
83838383
let lib_goog = "lib" // "goog"
83848384
let lib_js = "lib" // "js"
8385-
8385+
let lib_ocaml = "lib" // "ocaml" (* installed binary artifacts *)
83868386
let clean_bs_garbage cwd =
83878387
print_string "Doing cleaning in ";
83888388
print_endline cwd;
@@ -8394,7 +8394,8 @@ let clean_bs_garbage cwd =
83948394
aux lib_bs ;
83958395
aux lib_amdjs ;
83968396
aux lib_goog;
8397-
aux lib_js
8397+
aux lib_js ;
8398+
aux lib_ocaml
83988399
with
83998400
e ->
84008401
prerr_endline ("Failed to clean due to " ^ Printexc.to_string e)

jscomp/bsb/bsb_main.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ let lib_bs = "lib" // "bs"
282282
let lib_amdjs = "lib" // "amdjs"
283283
let lib_goog = "lib" // "goog"
284284
let lib_js = "lib" // "js"
285-
285+
let lib_ocaml = "lib" // "ocaml" (* installed binary artifacts *)
286286
let clean_bs_garbage cwd =
287287
print_string "Doing cleaning in ";
288288
print_endline cwd;
@@ -294,7 +294,8 @@ let clean_bs_garbage cwd =
294294
aux lib_bs ;
295295
aux lib_amdjs ;
296296
aux lib_goog;
297-
aux lib_js
297+
aux lib_js ;
298+
aux lib_ocaml
298299
with
299300
e ->
300301
prerr_endline ("Failed to clean due to " ^ Printexc.to_string e)

0 commit comments

Comments
 (0)