Hi @Anonymous !
If you want to compile in the Host machine you must use the Yocto toolchain for that work.
If you want to include the compilers on the image of the iMX you can add the next line in the local.conf with the packages that you want in your iMX image.
CORE_IMAGE_EXTRA_INSTALL += "name of the package".