Build Target Specifiers #
@[inline]
Equations
- Lake.mkBuildSpec info = { info := info, getBuildJob := Lake.BuildData.toJob }
Instances For
@[inline]
def
Lake.mkConfigBuildSpec
{Fam : Lean.Name → Type}
{ι : Type}
{facet : Lean.Name}
(facetType : String)
(info : BuildInfo)
(config : FacetConfig Fam ι facet)
(h : BuildData info.key = Fam facet)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- self.fetch = do let __do_lift ← self.getBuildJob <$> self.info.fetch Lake.maybeRegisterJob self.info.key.toSimpleString __do_lift
Instances For
Equations
- Lake.buildSpecs specs = do let __do_lift ← Array.mapM (fun (x : Lake.BuildSpec) => x.fetch) specs pure (Lake.Job.mixArray __do_lift)
Instances For
Parsing CLI Build Target Specifiers #
def
Lake.resolveModuleTarget
(ws : Workspace)
(mod : Module)
(facet : Lean.Name := Lean.Name.anonymous)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lake.resolveLibTarget
(ws : Workspace)
(lib : LeanLib)
(facet : Lean.Name := Lean.Name.anonymous)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.resolveExeTarget exe facet = if (facet.isAnonymous || facet == `exe) = true then pure (Lake.mkBuildSpec exe.exe) else throw (Lake.CliError.unknownFacet "executable" facet)
Instances For
def
Lake.resolveCustomTarget
(pkg : Package)
(name facet : Lean.Name)
(config : TargetConfig pkg.name name)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.resolveDefaultPackageTarget ws pkg = Array.flatMapM (fun (x : Lean.Name) => Lake.resolveTargetInPackage ws pkg x Lean.Name.anonymous) pkg.defaultTargets