forked from OSchip/llvm-project
[driver] If no OSX or iOS target has been specified and we're compiling for
armv7, go ahead as assume we're targeting iOS. rdar://10147774 llvm-svn: 140668
This commit is contained in:
parent
5f476dc3ef
commit
fe6fd36b6c
|
@ -564,6 +564,12 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
|
|||
}
|
||||
}
|
||||
|
||||
// If no OSX or iOS target has been specified and we're compiling for armv7,
|
||||
// go ahead as assume we're targeting iOS.
|
||||
if (OSXTarget.empty() && iOSTarget.empty())
|
||||
if (getDarwinArchName(Args) == "armv7")
|
||||
iOSTarget = "0.0";
|
||||
|
||||
// Handle conflicting deployment targets
|
||||
//
|
||||
// FIXME: Don't hardcode default here.
|
||||
|
|
Loading…
Reference in New Issue