Use the newly added spawnattr API, posix_spawnattr_setarchpref_np, to select a slice preferences per cpu and subcpu types, instead of just cpu with posix_spawnattr_setarchpref_np. In the patch it only does this for x86_64 and x86_64h, but I would like to extend the parsing to more subtypes.
Tested by compiling a fat binary with different print statements depending on the architecture. I considered adding a test for it, but it doesn't seem worth the hassle to figure out the host architecture and the availability.
rdar://16094957