Incremental Build
Megaton is optimized for incremental builds, i.e. the following cases:
- Rebuild after changing a source file
- Rebuild after creating/removing source files
- Rebuild after changing the build configuration
Megaton also uses GCC's deps file and OS timestamps to make sure the correct changes are detected and rebuilt for incremental builds.
However, there are some other types of change that may require a full rebuild, but isn't detected:
- Upgrading the toolchain (i.e. DevKitPro) or a tool used in the build
- Run
megaton checkenvandmegaton cleanto clear env cache and build cache
- Run
- Updating the
megatontool or library- Run
megaton build --libto rebuild the library
- Run
- Outputs/timestamps are manually changed
- Run
megaton cleanto clear build cache
- Run