Commits

Connor Wakamo committed 86b4a3b049e
[frontend] Begin moving search path-related options into SearchPathOptions. Added a new SearchPathOptions class to swiftAST, which will contain options like import search paths and the SDK path. Moved the RuntimeIncludePath from CompilerInvocation into SearchPathOptions. For now, at least, the RuntimeIncludePath is handled separately from other ImportSearchPaths, since we can’t yet guarantee that RuntimeIncludePath is set up before we parse the ImportSearchPaths. Added a SearchPathOptions member to ASTContext. Updated findModule() in SourceLoader.cpp and SerializedModuleLoader.cpp to check RuntimeIncludePath after everything else if no module was found. (This matches existing behavior, which had RuntimeIncludedPath at the end of ImportSearchPaths.) Swift SVN r11213