Can Ruby be cross-built on macOS?

Is it possible to build Ruby for intel architecture on an ARM machine?

I currently have the need to build Ruby for both ARM and Intel architecture. But would like to build both from the same machine.

I don’t know, but maybe the RVM folks know since compiling Ruby is part of their specialty. I would hit them up: GitHub - rvm/rvm: Ruby enVironment Manager (RVM)