[ParseableInterface] Respect -track-system-dependencies with -build-module-from-parseable-interface

Updates the subinvocation that builds the parseable interface to respect the
-track-system-dependencies flag of the top-level invocation if present, by
including system dependencies in the produced .swiftmodule.
This commit is contained in:
Nathan Hawes
2019-03-29 09:36:00 -07:00
parent 7f3344402c
commit f683373116
3 changed files with 24 additions and 5 deletions

View File

@@ -156,7 +156,7 @@ public:
static bool buildSwiftModuleFromSwiftInterface(
ASTContext &Ctx, StringRef CacheDir, StringRef PrebuiltCacheDir,
StringRef ModuleName, StringRef InPath, StringRef OutPath,
bool SerializeDependencyHashes);
bool SerializeDependencyHashes, bool TrackSystemDependencies);
};
/// Extract the specified-or-defaulted -module-cache-path that winds up in