mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add new OS platforms
LLVM added UEFI and LiteOS platforms. We don't currently support them, so we should crash on the unsupported OS for now to avoid accidents later.
This commit is contained in:
@@ -234,6 +234,9 @@ StringRef swift::getPlatformNameForTriple(const llvm::Triple &triple) {
|
||||
return "wasi";
|
||||
case llvm::Triple::UnknownOS:
|
||||
return "none";
|
||||
case llvm::Triple::UEFI:
|
||||
case llvm::Triple::LiteOS:
|
||||
llvm_unreachable("unsupported OS");
|
||||
}
|
||||
llvm_unreachable("unsupported OS");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user