Skip to content

Commit edd1192

Browse files
authored
refactor: rename [lib_artifacts] to [public_libs] (#10209)
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
1 parent c1db1d6 commit edd1192

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/dune_rules/expander.ml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ type t =
5050
{ dir : Path.Build.t
5151
; env : Env.t
5252
; local_env : string Action_builder.t Env.Var.Map.t
53-
; lib_artifacts : Lib.DB.t
54-
; lib_artifacts_host : Lib.DB.t
53+
; public_libs : Lib.DB.t
54+
; public_libs_host : Lib.DB.t
5555
; artifacts_host : Artifacts.t
5656
; bindings : value Pform.Map.t
5757
; scope : Scope.t
@@ -336,8 +336,8 @@ let expand_lib_variable t source ~lib ~file ~lib_exec ~lib_private =
336336
else (
337337
let artifacts, context =
338338
if lib_exec
339-
then t.lib_artifacts_host, Context.host t.context
340-
else t.lib_artifacts, Memo.return t.context
339+
then t.public_libs_host, Context.host t.context
340+
else t.public_libs, Memo.return t.context
341341
in
342342
file_of_lib artifacts context ~loc ~lib ~file)
343343
in
@@ -743,8 +743,8 @@ let make_root
743743
~scope_host
744744
~(context : Context.t)
745745
~env
746-
~lib_artifacts
747-
~lib_artifacts_host
746+
~public_libs
747+
~public_libs_host
748748
~artifacts_host
749749
=
750750
{ dir = Context.build_dir context
@@ -753,8 +753,8 @@ let make_root
753753
; bindings = Pform.Map.empty
754754
; scope
755755
; scope_host
756-
; lib_artifacts
757-
; lib_artifacts_host
756+
; public_libs
757+
; public_libs_host
758758
; artifacts_host
759759
; context
760760
; expanding_what = Nothing_special

src/dune_rules/expander.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ val make_root
1212
-> scope_host:Scope.t
1313
-> context:Context.t
1414
-> env:Env.t
15-
-> lib_artifacts:Lib.DB.t
16-
-> lib_artifacts_host:Lib.DB.t
15+
-> public_libs:Lib.DB.t
16+
-> public_libs_host:Lib.DB.t
1717
-> artifacts_host:Artifacts.t
1818
-> t
1919

src/dune_rules/super_context.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ let create ~(context : Context.t) ~(host : t option) ~packages ~stanzas =
279279
~scope_host
280280
~context
281281
~env
282-
~lib_artifacts:public_libs
282+
~public_libs
283283
~artifacts_host
284-
~lib_artifacts_host:public_libs_host
284+
~public_libs_host
285285
and+ artifacts = artifacts in
286286
(* Env node that represents the environment configured for the workspace. It
287287
is used as default at the root of every project in the workspace. *)

0 commit comments

Comments
 (0)