aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verilog
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2021-10-01 14:41:11 -0600
committerZachary Snow <zachary.j.snow@gmail.com>2021-10-01 21:18:33 -0600
commitfbd70f28f044968fd59740e34652071c4ee01218 (patch)
tree71d9be1a2d44c84a27cadf998637c0429b2a6002 /frontends/verilog
parentf9aad606ca9c8f875ce3c3091daf465b73d3f513 (diff)
downloadyosys-fbd70f28f044968fd59740e34652071c4ee01218.tar.gz
yosys-fbd70f28f044968fd59740e34652071c4ee01218.tar.bz2
yosys-fbd70f28f044968fd59740e34652071c4ee01218.zip
Specify minimum bison version 3.0+
Yosys works with bison 3.0 (or newer), but not bison 2.7 (the previous release). Ideally, we would require "3" rather than "3.0" to give a better error message, but bison 2.3, which still ships with macOS, does not support major-only version requirements. With this change, building with an outdated bison yields: `frontends/rtlil/rtlil_parser.y:25.10-14: require bison 3.0, but have 2.3`.
Diffstat (limited to 'frontends/verilog')
-rw-r--r--frontends/verilog/verilog_parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y
index 5eb1115ce..171e098a5 100644
--- a/frontends/verilog/verilog_parser.y
+++ b/frontends/verilog/verilog_parser.y
@@ -33,6 +33,8 @@
*
*/
+%require "3.0"
+
%{
#include <list>
#include <stack>