Skip to content

Commit

Permalink
refactor: rename [lib_artifacts] to [public_libs] (#10209)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Mar 4, 2024
1 parent c1db1d6 commit edd1192
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/dune_rules/expander.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type t =
{ dir : Path.Build.t
; env : Env.t
; local_env : string Action_builder.t Env.Var.Map.t
; lib_artifacts : Lib.DB.t
; lib_artifacts_host : Lib.DB.t
; public_libs : Lib.DB.t
; public_libs_host : Lib.DB.t
; artifacts_host : Artifacts.t
; bindings : value Pform.Map.t
; scope : Scope.t
Expand Down Expand Up @@ -336,8 +336,8 @@ let expand_lib_variable t source ~lib ~file ~lib_exec ~lib_private =
else (
let artifacts, context =
if lib_exec
then t.lib_artifacts_host, Context.host t.context
else t.lib_artifacts, Memo.return t.context
then t.public_libs_host, Context.host t.context
else t.public_libs, Memo.return t.context
in
file_of_lib artifacts context ~loc ~lib ~file)
in
Expand Down Expand Up @@ -743,8 +743,8 @@ let make_root
~scope_host
~(context : Context.t)
~env
~lib_artifacts
~lib_artifacts_host
~public_libs
~public_libs_host
~artifacts_host
=
{ dir = Context.build_dir context
Expand All @@ -753,8 +753,8 @@ let make_root
; bindings = Pform.Map.empty
; scope
; scope_host
; lib_artifacts
; lib_artifacts_host
; public_libs
; public_libs_host
; artifacts_host
; context
; expanding_what = Nothing_special
Expand Down
4 changes: 2 additions & 2 deletions src/dune_rules/expander.mli
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ val make_root
-> scope_host:Scope.t
-> context:Context.t
-> env:Env.t
-> lib_artifacts:Lib.DB.t
-> lib_artifacts_host:Lib.DB.t
-> public_libs:Lib.DB.t
-> public_libs_host:Lib.DB.t
-> artifacts_host:Artifacts.t
-> t

Expand Down
4 changes: 2 additions & 2 deletions src/dune_rules/super_context.ml
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ let create ~(context : Context.t) ~(host : t option) ~packages ~stanzas =
~scope_host
~context
~env
~lib_artifacts:public_libs
~public_libs
~artifacts_host
~lib_artifacts_host:public_libs_host
~public_libs_host
and+ artifacts = artifacts in
(* Env node that represents the environment configured for the workspace. It
is used as default at the root of every project in the workspace. *)
Expand Down

0 comments on commit edd1192

Please sign in to comment.