Currently gen_snapshot only supports two output formats for AOT snapshots: ELF and assembly.
Add a third output format, Mach-O, to avoid having to go through a separate assembly step when creating AOT snapshots on MacOS.
See #43299 (comment) for more context.