Skip to content

Commit

Permalink
Support VERILOG_INCLUDE_DIRS for linting (#2046)
Browse files Browse the repository at this point in the history
~ Adds `VERILOG_INCLUDE_DIRS` to linting steps
  • Loading branch information
piotro888 authored Nov 16, 2023
1 parent 63cb841 commit 1e9efe9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/tcl_commands/synthesis.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ proc run_verilator {} {
lappend arg_list {*}$output_file
}
lappend arg_list {*}$::env(VERILOG_FILES)

set incdirs ""
if { [info exists ::env(VERILOG_INCLUDE_DIRS)] } {
foreach incdir $::env(VERILOG_INCLUDE_DIRS) {
set incdirs "$incdirs +incdir+$incdir"
}
}
lappend arg_list {*}$incdirs

lappend arg_list -Wno-fatal
if { $::env(LINTER_RELATIVE_INCLUDES) } {
lappend arg_list "--relative-includes"
Expand Down

0 comments on commit 1e9efe9

Please sign in to comment.