Zulip Chat Archive

Stream: general

Topic: faster type checking


Bernd Losert (Dec 17 2021 at 14:49):

Every time I run lean, it checks all of my .lean files. How do I generate .olean files from my .lean files so that only the changes .lean files are checked? I already have .olean files for mathlib, but I'm not sure how to do it for my own files.

Kevin Buzzard (Dec 17 2021 at 14:51):

Make your own olean files by running lean --make src in your project root directory

Patrick Massot (Dec 17 2021 at 14:56):

You can also run leanproject build

Bernd Losert (Dec 17 2021 at 15:00):

The --make option works nice. Thanks.

Kevin Buzzard (Dec 17 2021 at 15:11):

Sorry I always forget the "official solution" -- I was running lean --make before leanproject existed so I never upgraded that part of my brain.


Last updated: Dec 20 2023 at 11:08 UTC