RFR: 7903591: Do not re-run cmake tasks if inputs didn't change
Jorn Vernee
jvernee at openjdk.org
Wed Nov 22 21:54:37 UTC 2023
On Wed, 22 Nov 2023 13:22:04 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Defines inputs and outputs for the cmake* tasks, to avoid re-running them every time.
>
> I also noticed that the CMakeLists.txt still uses a glob corresponding to the old test directory structure. It will essentially look for `*lib*.c` files from the project root. I've fixed this to only look in the `test` sub directory.
Closing this after some more thought. The build system (that cmake generates) should decide for us whether we need to re-build anything, rather than use trying to define that in the gradle file. So, we should always invoke cmake, and let it decide if anything needs to be done instead.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/142#issuecomment-1823555803
More information about the jextract-dev
mailing list