Commit graph

9 commits

Author SHA1 Message Date
David Thrane Christiansen
8fef03d1cc
feat: support Lake for building Lean core oleans (#3886)
This is from a ~~pair~~triple programming session with @tydeu and
@mhuisi.

If stage 1 is built with `-DUSE_LAKE=ON`, the CMake run will generate
`lakefile.toml` files for the root, `src`, and `tests`. These Lake
configuration files can then be used to build core oleans. While they do
not yet allow Lake to be used to build the Lean binaries. they do allow
Lake to be used for working interactively with the Lean source. In our
preliminary experiments, this allowed updates to `Init.Data.Nat` to be
noticed automatically when reloading downstream files, rather than
requiring a full manual compiler rebuild. This will make it easier to
work on the system.

As part of this change, Lake is added to stage 0. This allows Lake to
function in `src`, which uses the stage 0 toolchain.

---------

Co-authored-by: Mac Malone <tydeu@hatpress.net>
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2024-06-13 16:18:24 +00:00
Leonardo de Moura
8cb1ff206c chore: move tests to new frontend 2020-10-23 14:07:26 -07:00
Sebastian Ullrich
46065a9b3b feat: leanmake: auto-detect PKG 2020-06-13 15:22:01 +02:00
Sebastian Ullrich
655a16ce56 doc: reference correct default stage 2020-05-18 14:52:10 +02:00
Sebastian Ullrich
d36c7dc33b doc: port test program instructions to leanmake 2020-05-14 14:47:54 +02:00
Sebastian Ullrich
aef4a7159b chore(*): remove obsolete leanpkg.path files 2019-07-25 17:46:53 -07:00
Leonardo de Moura
7ff42dd8e5 chore(doc/examples/compiler/test): simplify example 2019-02-06 17:23:16 -08:00
Leonardo de Moura
886fdf263e chore(doc/examples/compiler): we don't need main.cpp anymore
cc @kha @ChristianoBraga
2019-02-06 14:50:41 -08:00
Leonardo de Moura
ed1b101dd2 doc(doc/examples/compiler): new example 2019-02-05 16:50:12 -08:00