Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mk: Add mktool support to check-shlibs.
mktool is an optional external tool, available from pkgtools/mktool or "cargo install mktool", that provides significant performance improvements compared to check-shlibs-*.awk, while being 100% compatible. After installing, set TOOLS_PLATFORM.mktool=/path/to/mktool to enable it. Comparing the time taken to run "bmake _check-shlibs" in a SmartOS VM in x11/kde-workspace4, check-shlibs-elf.awk takes: real 0m20.441s user 0m7.540s sys 0m11.222s while mktool takes just: real 0m0.607s user 0m0.400s sys 0m0.242s A 30x speedup, but perhaps more importantly a significant reduction in system time. Tested on SmartOS and NetBSD (comparing against check-shlibs-elf.awk) and macOS (comparing against check-shlibs-macho.awk). mktool was helpful in exposing the recent issue and bugfix in check-shlibs-macho.awk.
- Loading branch information