When you build android, use the additional “showcommands” target. This will dump the commands being used for compilation.
I typically compile like this:
(time make -j24 showcommands) 2>&1 | tee buildcmds
To then see the tools in use, I’d roughly do the following:
grep ^prebuilts buildcmds | cut -d " " -f 1 | sort | uniq