Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[K/N][tests] Stop using shared Clang module cache to improve stability
cinterop uses Clang and libclang. When getting `-fmodules` flag, Clang practices some caching, which is system-wide by default. Meaning, the cache directory can be used by other Clang invocations, even at the same time. Clang module cache machinery has sophisticated measures to avoid any problems with that, e.g. different compilation flags make it use different cache sub-directories, and there are locks in place to avoid data races. Still, sometimes we encounter problems seemingly triggered by re-using the same cache directory. This commit workarounds that by passing `-fmodules-cache-path=` flag to some of the relevant `cinterop` invocations in the test infrastructure. ^KT-68254 (cherry picked from commit 0044ca5)
- Loading branch information