mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Adds the origin file directory as a module search path. This is the default behaviour, this commit makes it explicit. Note from the doc: '-I' -> include search path '-y' -> module search path The space after '-y' seems mandatory, at least when I tested it with vresion 5.032-46-g447ab12ce
15 lines
561 B
Plaintext
15 lines
561 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('verilog', 'verilator')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default verilator command should be correct):
|
|
AssertLinter 'verilator', 'verilator --lint-only -Wall -Wno-DECLFILENAME -I%s:h -y %s:h %t'
|
|
|
|
Execute(verilator options should be configurable):
|
|
" Additional args for the linter
|
|
let g:ale_verilog_verilator_options = '-sv --default-language "1800-2012"'
|
|
|
|
AssertLinter 'verilator', 'verilator --lint-only -Wall -Wno-DECLFILENAME -I%s:h -y %s:h -sv --default-language "1800-2012" %t'
|