Skip to content

Commit fb25cdf

Browse files
committed
chore: hardcode unix and threads library in bootstrap
Signed-off-by: Ali Caglayan <alizter@gmail.com>
1 parent 897bd78 commit fb25cdf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

boot/libs.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let external_libraries = [ "unix"; "threads" ]
1+
let external_libraries = [ "threads.posix" ]
22

33
let local_libraries =
44
[ ("otherlibs/ordering", Some "Ordering", false, None)

src/dune_rules/bootstrap_info.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,14 @@ let rule sctx ~requires_link =
6464
])
6565
|> Action_builder.of_memo
6666
in
67-
let externals =
67+
(* These are auto-generated *)
68+
let _externals =
6869
List.filter_map externals ~f:(fun lib ->
6970
let name = Lib.name lib in
7071
Option.some_if (Lib_name.equal name (Lib_name.of_string "threads.posix")) name)
7172
in
73+
(* These are hardcoded *)
74+
let externals = List.map ~f:Lib_name.of_string [ "unix"; "threads" ] in
7275
Format.asprintf
7376
"%a@."
7477
Pp.to_fmt

0 commit comments

Comments
 (0)