mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix the non-deterministic .swiftdeps output. In contrary to the comments in the `FineGrainedDependencies.h`, the non-determinism is not because of the use of unordered_* data structure there. Those data structures are not traversed so removing all the unused traversing methods to avoid the confusion. The true reason for the non-determinism is all the DenseSet in the Evaluator dependency tracking, that causes the FineGrainedDependencies to see arbitrary ordering. Use `SetVector` instead to keep track of the insertion order to make dependency output to be deterministic. rdar://104876331
7.8 KiB
7.8 KiB