mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't crash the frontend if a bad target is given
Provide a chance to emit a diagnostic instead. rdar://problem/20931800 Swift SVN r28940
This commit is contained in:
@@ -146,7 +146,10 @@ namespace swift {
|
||||
|
||||
/// Sets the target we are building for and updates configuration options
|
||||
/// to match.
|
||||
void setTarget(llvm::Triple triple);
|
||||
///
|
||||
/// \returns A pair - the first element is true if the OS was invalid.
|
||||
/// The second element is true if the Arch was invalid.
|
||||
std::pair<bool, bool> setTarget(llvm::Triple triple);
|
||||
|
||||
/// Returns the minimum platform version to which code will be deployed.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user