mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Moved FrameworkSearchPaths from CompilerInvocation to SearchPathOptions.
Swift SVN r11216
This commit is contained in:
@@ -127,6 +127,11 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
|
||||
Opts.ImportSearchPaths.push_back(A->getValue());
|
||||
}
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_F),
|
||||
Args.filtered_end())) {
|
||||
Opts.FrameworkSearchPaths.push_back(A->getValue());
|
||||
}
|
||||
|
||||
// Opts.RuntimeIncludePath is set by calls to
|
||||
// CompilerInvocation::setRuntimeIncludePath().
|
||||
// TODO: improve the handling of RuntimeIncludePath.
|
||||
@@ -186,10 +191,6 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
|
||||
setTargetTriple(InputArg->getValue());
|
||||
break;
|
||||
|
||||
case OPT_F:
|
||||
FrameworkSearchPaths.push_back(InputArg->getValue());
|
||||
break;
|
||||
|
||||
case OPT_sdk:
|
||||
setSDKPath(InputArg->getValue());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user