Skip to content
Permalink
Browse files

allow users to specify an extra import search path in the environment (

  • Loading branch information...
marcrasi committed Mar 19, 2019
1 parent c1e5da4 commit bdb96e8b352f7cb18e2b3b66f2d3f75d92f81dcd
Showing with 4 additions and 0 deletions.
  1. +4 −0 source/Symbol/SwiftASTContext.cpp
@@ -2589,6 +2589,10 @@ swift::SearchPathOptions &SwiftASTContext::GetSearchPathOptions() {
search_path_opts.ImportSearchPaths.emplace_back(repl_modules_dir);
}

// Allow users to specify an extra import search path in the environment.
if (auto *import_search_path = getenv("SWIFT_IMPORT_SEARCH_PATH")) {
search_path_opts.ImportSearchPaths.emplace_back(import_search_path);
}
}

return search_path_opts;

0 comments on commit bdb96e8

Please sign in to comment.
You can’t perform that action at this time.