Making a toolchain for iPadOS is trivial. The issue is that Apple does not provide the facilities to do this.
As other poster alluded to. It’s not the difficulty, it’s that given the environment of the iPad, there isn’t a compelling use case.
You can run a compiler, but you cannot run the generated code.