Driver: More stubbing for Linux support

Swift SVN r22362
This commit is contained in:
Graham Batty
2014-09-29 21:14:32 +00:00
parent e16e9d5a03
commit a1e0b0fbf7
7 changed files with 74 additions and 12 deletions

View File

@@ -67,6 +67,8 @@ static void updateTargetConfigurationOptions(LangOptions &LangOpts,
LangOpts.addTargetConfigOption("os", "OSX");
else if (triple.isiOS())
LangOpts.addTargetConfigOption("os", "iOS");
else if (triple.isOSLinux())
LangOpts.addTargetConfigOption("os", "Linux");
else
llvm_unreachable("Unsupported target OS");
@@ -94,6 +96,8 @@ static void updateTargetConfigurationOptions(LangOptions &LangOpts,
triple.getMacOSXVersion(major, minor, revision);
} else if (triple.isiOS()) {
triple.getiOSVersion(major, minor, revision);
} else if (triple.isOSLinux()) {
major = minor = revision = 0;
} else {
llvm_unreachable("Unsupported target OS");
}