3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 21:27:00 +00:00

Make the generated *.tab.hh include all the headers needed to define the union.

This commit is contained in:
Henner Zeller 2019-05-14 21:07:26 -07:00
parent c8c1df23a0
commit 8eb2798776
2 changed files with 18 additions and 2 deletions

View file

@ -47,6 +47,15 @@ USING_YOSYS_NAMESPACE
%define api.prefix {rtlil_frontend_ilang_yy}
/* The union is defined in the header, so we need to provide all the
* includes it requires
*/
%code requires {
#include <string>
#include <vector>
#include "frontends/ilang/ilang_frontend.h"
}
%union {
char *string;
int integer;
@ -451,4 +460,3 @@ conn_stmt:
delete $2;
delete $3;
};