Open fruffy opened 7 months ago
there is a command in cmake configure_file()
it kind of helps in caching a file configure_file() I see p4c_add_tests macro will this a good to to cache the generation of these test files - files
Yes, it could work. The problem is that the often generate test files in incremental fashion (by appending to the file). We would need to change that and emit the string in its entirety.
Our CMake setup is rather slow. The slowness comes from the test files we generate unconditionally with the
p4c_add_tests
every time time we runcmake
. It would be nice to find a way to cache the generation or only regenerate files when necessary.