@@ -403,6 +403,9 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
403403 // / CASID for the Root of ClangIncludeTree. Empty if not used.
404404 std::string CASClangIncludeTreeRootID;
405405
406+ // / Whether this is a "system" module.
407+ bool IsSystem;
408+
406409 ClangModuleDependencyStorage (const std::string &pcmOutputPath,
407410 const std::string &mappedPCMPath,
408411 const std::string &moduleMapFile,
@@ -412,15 +415,16 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
412415 const std::vector<std::string> &capturedPCMArgs,
413416 const std::string &CASFileSystemRootID,
414417 const std::string &clangIncludeTreeRoot,
415- const std::string &moduleCacheKey)
418+ const std::string &moduleCacheKey,
419+ bool IsSystem)
416420 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::Clang,
417421 moduleCacheKey),
418422 pcmOutputPath (pcmOutputPath), mappedPCMPath(mappedPCMPath),
419423 moduleMapFile(moduleMapFile), contextHash(contextHash),
420424 buildCommandLine(buildCommandLine), fileDependencies(fileDependencies),
421425 capturedPCMArgs(capturedPCMArgs),
422426 CASFileSystemRootID(CASFileSystemRootID),
423- CASClangIncludeTreeRootID(clangIncludeTreeRoot) {}
427+ CASClangIncludeTreeRootID(clangIncludeTreeRoot), IsSystem(IsSystem) {}
424428
425429 ModuleDependencyInfoStorageBase *clone () const override {
426430 return new ClangModuleDependencyStorage (*this );
@@ -549,11 +553,12 @@ class ModuleDependencyInfo {
549553 const std::vector<std::string> &capturedPCMArgs,
550554 const std::string &CASFileSystemRootID,
551555 const std::string &clangIncludeTreeRoot,
552- const std::string &moduleCacheKey) {
556+ const std::string &moduleCacheKey,
557+ bool IsSystem) {
553558 return ModuleDependencyInfo (std::make_unique<ClangModuleDependencyStorage>(
554559 pcmOutputPath, mappedPCMPath, moduleMapFile, contextHash,
555560 nonPathCommandLine, fileDependencies, capturedPCMArgs,
556- CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey));
561+ CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey, IsSystem ));
557562 }
558563
559564 // / Describe a placeholder dependency swift module.
0 commit comments