Zulip Chat Archive

Stream: lean4

Topic: lake build --help


Bolton Bailey (Dec 15 2023 at 15:27):

Produces the following line:

  a/+A:c                C file of module `A` of package `a`

Does this mean it builds a .c file? Or a lean file named c.lean?

Bolton Bailey (Dec 15 2023 at 15:40):

Question 2: What command do I invoke if I want to programmatically check if a particular Mathlib/Path/To/File.lean has no errors in it?

Damiano Testa (Dec 15 2023 at 15:45):

I think lake env lean file or lake build file. One takes a path, the other the same as import statements. I forget which is which.

Mario Carneiro (Dec 15 2023 at 15:47):

Q1: It builds a .c file

Mario Carneiro (Dec 15 2023 at 15:48):

lake build Mathlib.Path.To.File builds the specified module (and all its dependencies if not already built), lake env lean Mathlib/Path/To/File.lean builds the lean file itself but assumes the dependencies are already built


Last updated: Dec 20 2023 at 11:08 UTC