mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
spicy/zeekygen: Remove mtime from generated code
Zeekygen implements its own make-style update logic to prevent re-creation of files that have not changed. To fulfill this, we currently encode the current time into spicyz generated .cc files. This degrades ccache efficiency for built-in analyzers and also for all .evt files compiled during testing. Switch SpicyModuleInfo to return current time instead. This results in the re-generation of documentation files unconditionally when running Zeekygen, but that seems more acceptable IMO. Generally wonder if Zeekygen should produce output unconditionally and if we need to clobber prevention, compare with the content of the existing file. Closes #3619
This commit is contained in:
parent
d728981b77
commit
ecdd2b0b29
7 changed files with 14 additions and 19 deletions
|
@ -94,7 +94,7 @@ public:
|
|||
* Begins registration of a Spicy EVT module. All subsequent, other `register_*()`
|
||||
* function call will be associated with this module for documentation purposes.
|
||||
*/
|
||||
void register_spicy_module_begin(const std::string& name, const std::string& description, const hilti::rt::Time& mtime);
|
||||
void register_spicy_module_begin(const std::string& name, const std::string& description);
|
||||
|
||||
/**
|
||||
* Registers a Spicy protocol analyzer with its EVT meta information with the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue