Check whether it is cross build before OS detection.