mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -resource-dir option to find lib/swift directory.
This is equivalent to Clang's -fresource-dir; it provides the location of compiler modules and libraries. No end-user-visible changes, but the iOS build will no longer have to use -I to build and test its own standard libraries. Swift SVN r13888
This commit is contained in:
@@ -550,6 +550,10 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
|
||||
Opts.SDKPath = A->getValue();
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_resource_dir)) {
|
||||
Opts.RuntimeResourcePath = A->getValue();
|
||||
}
|
||||
|
||||
// Opts.RuntimeIncludePath is set by calls to
|
||||
// setRuntimeIncludePath() or setMainExecutablePath().
|
||||
// Opts.RuntimeImportPath is set by calls to
|
||||
|
||||
Reference in New Issue
Block a user