mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Moved SDKPath from CompilerInvocation to SearchPathOptions.
Swift SVN r11237
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user