Version: 1.1.0
mojo precompile
Compile a package ahead of time so later builds reuse the result.
Essentials
- Helps large packages with many specializations.
- The cache must be rebuilt when the compiler version changes.
- Precompile does not run tests.
Example
$ mojo precompile mymodule
Keep in mind
Delete the cache after a compiler upgrade rather than mixing artifacts from two versions.