@@ -403,6 +403,9 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
403
403
// / CASID for the Root of ClangIncludeTree. Empty if not used.
404
404
std::string CASClangIncludeTreeRootID;
405
405
406
+ // / Whether this is a "system" module.
407
+ bool IsSystem;
408
+
406
409
ClangModuleDependencyStorage (const std::string &pcmOutputPath,
407
410
const std::string &mappedPCMPath,
408
411
const std::string &moduleMapFile,
@@ -412,15 +415,16 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
412
415
const std::vector<std::string> &capturedPCMArgs,
413
416
const std::string &CASFileSystemRootID,
414
417
const std::string &clangIncludeTreeRoot,
415
- const std::string &moduleCacheKey)
418
+ const std::string &moduleCacheKey,
419
+ bool IsSystem)
416
420
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::Clang,
417
421
moduleCacheKey),
418
422
pcmOutputPath (pcmOutputPath), mappedPCMPath(mappedPCMPath),
419
423
moduleMapFile(moduleMapFile), contextHash(contextHash),
420
424
buildCommandLine(buildCommandLine), fileDependencies(fileDependencies),
421
425
capturedPCMArgs(capturedPCMArgs),
422
426
CASFileSystemRootID(CASFileSystemRootID),
423
- CASClangIncludeTreeRootID(clangIncludeTreeRoot) {}
427
+ CASClangIncludeTreeRootID(clangIncludeTreeRoot), IsSystem(IsSystem) {}
424
428
425
429
ModuleDependencyInfoStorageBase *clone () const override {
426
430
return new ClangModuleDependencyStorage (*this );
@@ -549,11 +553,12 @@ class ModuleDependencyInfo {
549
553
const std::vector<std::string> &capturedPCMArgs,
550
554
const std::string &CASFileSystemRootID,
551
555
const std::string &clangIncludeTreeRoot,
552
- const std::string &moduleCacheKey) {
556
+ const std::string &moduleCacheKey,
557
+ bool IsSystem) {
553
558
return ModuleDependencyInfo (std::make_unique<ClangModuleDependencyStorage>(
554
559
pcmOutputPath, mappedPCMPath, moduleMapFile, contextHash,
555
560
nonPathCommandLine, fileDependencies, capturedPCMArgs,
556
- CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey));
561
+ CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey, IsSystem ));
557
562
}
558
563
559
564
// / Describe a placeholder dependency swift module.
0 commit comments