Skip to content

Conversation

@cachemeifyoucan
Copy link
Contributor

This reverts commit 4f05903. The change is actually not NFC since previously, there is a cache in the CompilerInvocation that prevents the same CAS from the same CASOptions from being initialized multiple times, which was relied upon when running inside sub invocation. When switching to a non-caching simple CASOption types, it causes every single sub instance will create its own CAS, and it can consume too many file descriptors and causing errors during dependency scanning.

rdar://164903080

This reverts commit 4f05903. The change
is actually not NFC since previously, there is a cache in the
CompilerInvocation that prevents the same CAS from the same CASOptions
from being initialized multiple times, which was relied upon when
running inside sub invocation. When switching to a non-caching simple
CASOption types, it causes every single sub instance will create its own
CAS, and it can consume too many file descriptors and causing errors
during dependency scanning.

rdar://164903080
@cachemeifyoucan
Copy link
Contributor Author

Please test with following PR:
swiftlang/llvm-project#11839

@swift-ci please smoke test

@cachemeifyoucan
Copy link
Contributor Author

Please test with following PR:
swiftlang/llvm-project#11839

@swift-ci please smoke test windows platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant