We currently have several packages for build tools installed in the compat layer that we don't really want/need there, including dev-util/cmake, dev-util/meson, dev-util/ninja (possibly others too).
EasyBuild will install these tools as build dependencies in the software layer when they are needed, because the specific version being used may matter (I recall several cases where an older CMake version had to be used because of bugs/changes/regressions in more recent versions, for example).
I took a quick look at emerge --depclean for this, but it seems like build tools wouldn't be removed with this (see output produced by emerge --depclean --pretend).
@amadio: Any idea if there's an easy way to strip out all packages that were only installed because they are a build dependency for other packages?