Skip to content

Commit

Permalink
refactor: speed up stdlib build (#6524)
Browse files Browse the repository at this point in the history
symlink instead of copying object files that live along the .cma

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Nov 22, 2022
1 parent 361c46d commit 8f6a32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dune_rules/lib_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ let setup_build_archives (lib : Dune_file.Library.t) ~top_sorted_modules ~cctx
file explicitly *)
let dst = Path.Build.relative (Obj_dir.dir obj_dir) fname in
Super_context.add_rule sctx ~dir ~loc:lib.buildable.loc
(Action_builder.copy ~src ~dst)))
(Action_builder.symlink ~src ~dst)))
in
let modes = Compilation_context.modes cctx in
(* The [dir] below is used as an object directory without going through
Expand Down

0 comments on commit 8f6a32f

Please sign in to comment.