Skip to content

Commit 164a94b

Browse files
authored
feat: lake: getLakeSharedDynlib (#14364)
This PR adds `getLakeSharedDynlib` to the Lake API. It is a simple monadic convenience function that retrieves `LakeInstall.sharedDynlib` for the detected Lake installation.
1 parent 1106f6d commit 164a94b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lake/Lake/Config/Monad.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,8 @@ Returns the path of the primary core shared library
364364
@[inline] public def getLake : m FilePath :=
365365
(·.lake) <$> getLakeInstall
366366

367+
/-- Get the Lake shared library (e.g., {lit}`libLake_shared`) in the detected Lake installation. -/
368+
@[inline] public def getLakeSharedDynlib : m Dynlib :=
369+
(·.sharedDynlib) <$> getLakeInstall
370+
367371
end

0 commit comments

Comments
 (0)