Commit 275a1b5
committed
[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)1 parent b47f431 commit 275a1b5
File tree
1 file changed
+16
-2
lines changed- native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox
1 file changed
+16
-2
lines changedLines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
157 | 171 | | |
158 | 172 | | |
159 | 173 | | |
| |||
0 commit comments