Don't look in the standard import locations when building the core standard library.

This is a better way to fix the Darwin overlay <-> swift_stdlib_core
inferred circular dependency <rdar://problem/16603168>.

Swift SVN r16476
This commit is contained in:
Doug Gregor
2014-04-17 22:07:48 +00:00
parent 96bc99e3c4
commit 5698fd3b8a
6 changed files with 17 additions and 1 deletions

View File

@@ -592,6 +592,10 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
Opts.RuntimeResourcePath = A->getValue();
}
if (Args.getLastArg(OPT_nostdimport)) {
Opts.SkipRuntimeLibraryImportPath = true;
}
// Opts.RuntimeIncludePath is set by calls to
// setRuntimeIncludePath() or setMainExecutablePath().
// Opts.RuntimeImportPath is set by calls to