diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-30 04:20:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-30 04:20:40 +0000 |
commit | 3fd823b0625eba87153fe592a0fd12e088db3b36 (patch) | |
tree | 887f8984ac5e0f4b6a17ae0b0941835a9e829532 /lib/Driver/ToolChains.cpp | |
parent | 5f5c37b1234e6ebb6c17e084bc4e2cce92e31585 (diff) |
Driver/Darwin: Reject invalid arch combinations with
-mios-simulator-version-min.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 838e5bf2eb..7f464c6944 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -457,6 +457,13 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const { } } + // Reject invalid architecture combinations. + if (iOSSimVersion && (getTriple().getArch() != llvm::Triple::x86 && + getTriple().getArch() != llvm::Triple::x86_64)) { + getDriver().Diag(clang::diag::err_drv_invalid_arch_for_deployment_target) + << getTriple().getArchName() << iOSSimVersion->getAsString(Args); + } + // Set the tool chain target information. unsigned Major, Minor, Micro; bool HadExtra; |