mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/bbannier/lib-spicy-hooks'
* origin/topic/bbannier/lib-spicy-hooks: Do not emit hook files for builtin modules
This commit is contained in:
commit
b935d2f59a
3 changed files with 6 additions and 5 deletions
7
CHANGES
7
CHANGES
|
@ -1,4 +1,4 @@
|
||||||
7.1.0-dev.4 | 2024-07-12 09:47:59 -0700
|
7.1.0-dev.6 | 2024-07-12 09:51:39 -0700
|
||||||
|
|
||||||
* Do not emit hook files for builtin modules (Benjamin Bannier, Corelight)
|
* Do not emit hook files for builtin modules (Benjamin Bannier, Corelight)
|
||||||
|
|
||||||
|
@ -6,8 +6,9 @@
|
||||||
`spicy` module even though that module like any other builtin module
|
`spicy` module even though that module like any other builtin module
|
||||||
never contains implementations of hooks for types in user code.
|
never contains implementations of hooks for types in user code.
|
||||||
|
|
||||||
This patch adds a blocklist of builtin modules which are skipped for
|
This patch prevents modules with skipped implementations (such as our
|
||||||
generating hook files.
|
builtin modules) from being added to the compilation which prevents
|
||||||
|
generating their hook files.
|
||||||
|
|
||||||
7.1.0-dev.2 | 2024-07-12 09:46:34 -0700
|
7.1.0-dev.2 | 2024-07-12 09:46:34 -0700
|
||||||
|
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
7.1.0-dev.4
|
7.1.0-dev.6
|
||||||
|
|
|
@ -47,7 +47,7 @@ struct VisitorTypes : public spicy::visitor::PreOrder {
|
||||||
module = n->scopeID();
|
module = n->scopeID();
|
||||||
path = n->uid().path;
|
path = n->uid().path;
|
||||||
|
|
||||||
if ( is_resolved )
|
if ( is_resolved && ! n->skipImplementation() )
|
||||||
glue->addSpicyModule(module, path);
|
glue->addSpicyModule(module, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue