[frontend] Moved SDKPath from CompilerInvocation to SearchPathOptions.

Swift SVN r11237
This commit is contained in:
Connor Wakamo
2013-12-13 04:52:58 +00:00
parent c610ac94ef
commit 20ce2ba390
3 changed files with 9 additions and 7 deletions

View File

@@ -132,6 +132,10 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
Opts.FrameworkSearchPaths.push_back(A->getValue());
}
if (const Arg *A = Args.getLastArg(OPT_sdk)) {
Opts.SDKPath = A->getValue();
}
// Opts.RuntimeIncludePath is set by calls to
// CompilerInvocation::setRuntimeIncludePath().
// TODO: improve the handling of RuntimeIncludePath.
@@ -191,10 +195,6 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
setTargetTriple(InputArg->getValue());
break;
case OPT_sdk:
setSDKPath(InputArg->getValue());
break;
case OPT_parse_as_library:
setInputKind(SourceFileKind::Library);
break;