https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
v

vbsteven

03/22/2023, 5:17 PM
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

Landry Norris

03/22/2023, 5:28 PM
A gradle clean ought to fix this.
v

vbsteven

03/22/2023, 5:29 PM
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

Landry Norris

03/22/2023, 5:30 PM
That’s odd. Wonder where else it’s caching.
v

vbsteven

03/22/2023, 5:30 PM
or there is another cache involved somewhere
might be somewhere in gradle home
or konan?
l

Landry Norris

03/22/2023, 5:30 PM
I know ~/.gradle/cache exists. But cleaning that is usually a pretty big deal.
v

vbsteven

03/22/2023, 5:31 PM
yeah indeed, that's the brute force approach but requires me to redownload everything for all projects so I prefer not to
a

Adam S

03/22/2023, 5:55 PM
c

corneil

03/22/2023, 6:27 PM
Add the include files as a dependency on klib generation.
68 Views