All these places should check the target, not the host processor.
ref https://github.com/JuliaPackaging/Yggdrasil/pull/6641