Currently, compilation in all repos uses the built-in make functionality to check if any Go source file in the repository has been modified before compiling. However, with Go's built-in caching, the source code file modification check is slower than just invoking the go binary to let it decide whether anything needs to be re-built. The file modification check should be removed so that the Go cache can do the more efficient compllation check.
Note: this change will likely not not being made in the Evergreen code base because of the way the dist task works. If it unconditionally runs go build the binary, it will update the mod timestamp, even if the binary is not modified. This may cause it to be tarballed again, which does duplicate work. If this is going to be done in Evergreen, there should be some simple tests to see how fast make dist is with and without the compilation change.