mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ParseableInterface] Distinguish SDK and non-SDK dependencies
This allows the SDK to be relocated without automatically resulting in a rebuild. Based on an old patch from Jordan Rose.
This commit is contained in:
@@ -34,9 +34,8 @@ void
|
||||
DependencyTracker::addDependency(StringRef File, bool IsSystem) {
|
||||
// DependencyTracker exposes an interface that (intentionally) does not talk
|
||||
// about clang at all, nor about missing deps. It does expose an IsSystem
|
||||
// dimension, though it is presently always false, we accept it and pass it
|
||||
// along to the clang DependencyCollector in case Swift callers start setting
|
||||
// it to true someday.
|
||||
// dimension, which we accept and pass along to the clang DependencyCollector.
|
||||
// along to the clang DependencyCollector.
|
||||
clangCollector->maybeAddDependency(File, /*FromModule=*/false,
|
||||
IsSystem, /*IsModuleFile=*/false,
|
||||
/*IsMissing=*/false);
|
||||
|
||||
Reference in New Issue
Block a user