Driver: Fix thinkos that prevented Clang from picking the right deployment

target when both {MACOSX,IPHONEOS}_DEPLOYMENT_TARGET were set.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-03-20 08:47:42 +00:00
Родитель 4c00fcdf98
Коммит 84d1e6e443
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -394,9 +394,9 @@ DerivedArgList *Darwin::TranslateArgs(InputArgList &Args,
// this. Perhaps put under -pedantic?
if (getTriple().getArch() == llvm::Triple::arm ||
getTriple().getArch() == llvm::Triple::thumb)
OSXVersion = 0;
OSXTarget = 0;
else
iPhoneVersion = 0;
iPhoneOSTarget = 0;
}
if (OSXTarget) {