ensure '-mmacosx-version-min' / MACOSX_DEPLOYMENT_TARGET is >= 10.8 for x86_64h

This commit is contained in:
Thomas Pöchtrager 2014-10-30 20:19:04 +01:00
parent 2407f06840
commit 7f69e4fa98

View File

@ -403,6 +403,12 @@ bool Target::setup() {
return false;
}
if (haveArch(Arch::x86_64h) && OSNum < OSVersion(10, 8)) {
std::cerr << getArchName(Arch::x86_64h) << " requires "
<< "'-mmacosx-version-min=10.8' (or later)" << std::endl;
return false;
}
if (stdlib == StdLib::unset) {
if (libCXXIsDefaultCXXLib()) {
stdlib = StdLib::libcxx;