Installation
Installation
Concrete is currently distributed via source. The normal path today is:
- clone the repository
- install the compiler/build dependencies
- build the Lean compiler
- run the produced
concretebinary from.lake/build/bin/concrete
Required Dependencies
For ordinary source builds, you currently need:
git- Lean 4 and
lake clangmakeif you want the convenience targets from the repository root
The CI uses Lean plus clang directly, so those are the important requirements to match.
Optional Dependencies
nix, if you want to use the repository’smake buildwrapper exactly as maintainedmdbook, if you want to build this documentation book locally
Build From Source
Repository build:
git clone https://github.com/unbalancedparentheses/concrete2.git
cd concrete2
make build
Direct Lean build:
lake build
The compiler binary is then available at:
.lake/build/bin/concrete
Verify The Build
Compile and run a small example:
.lake/build/bin/concrete examples/snippets/hello_world.con -o /tmp/hello
/tmp/hello
Run the main fast test path:
./run_tests.sh
Run the full suite before merge-level changes:
./run_tests.sh --full
Notes
- Concrete is still changing quickly; building from source is the expected path.
- If you are debugging the compiler itself, prefer running
.lake/build/bin/concretedirectly instead of copying it into a global location. - If you want a public-facing project overview before installation details, see Why Concrete.