script_opt: Do not include ZBody.h in ZAM/Validate.cc

Touching broker/Manager.h or logging/Manager.h or anything that's
included in ZBody.h results in a rebuild of a bunch of files in ZAM.
Particularly, ZAM/Validate.cc takes much too long to recompile for
me (45+ seconds) and apparently that's mostly by accident.

Clean up the ZAM/Validate.cc includes to prevent this.
This commit is contained in:
Arne Welzel 2024-08-28 17:05:57 +02:00
parent 79ebce6e3c
commit bbd7adc0dc

View file

@ -1,8 +1,11 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include <map>
#include <regex>
#include <string>
#include "zeek/script_opt/ZAM/ZBody.h"
#include "zeek/Reporter.h"
#include "zeek/script_opt/ZAM/ZInst.h"
#include "zeek/script_opt/ZAM/ZOp.h"
using std::string;