Is there an easy way to clear the cinterop cache w...
# kotlin-native
v
Is there an easy way to clear the cinterop cache without changing the .def file? I just updated my system and some /usr/include headers have changed but as long as the .def file isn't changed it re-uses the previous generated klib. If I change the .def it regenerates, but if I revert my local .def change, and re-run my generator, cinterop seems to revert back to the old cached version.
l
A gradle clean ought to fix this.
v
That's what I thought as well, and after a clean my build folders are gone, but the behavior remains
I'm a bit puzzled atm by this
l
That’s odd. Wonder where else it’s caching.
v
or there is another cache involved somewhere
might be somewhere in gradle home
or konan?
l
I know ~/.gradle/cache exists. But cleaning that is usually a pretty big deal.
v
yeah indeed, that's the brute force approach but requires me to redownload everything for all projects so I prefer not to
a
c
Add the include files as a dependency on klib generation.
171 Views