mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
In the vein of commit ea72d66b "Verilator current file search path (#3500)"
This includes the directory of the current file in the library
search path. From `man iverilog`:
-ylibdir
Append the directory to the library module search
path. When the compiler finds an undefined module, it
looks in these directories for files with the right name.
15 lines
431 B
Plaintext
15 lines
431 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('verilog', 'iverilog')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default iverilog command should be correct):
|
|
AssertLinter 'iverilog', 'iverilog -t null -Wall -y%s:h %t'
|
|
|
|
Execute(iverilog options should be configurable):
|
|
" Additional args for the linter
|
|
let g:ale_verilog_iverilog_options = '-y.'
|
|
|
|
AssertLinter 'iverilog', 'iverilog -t null -Wall -y%s:h -y. %t'
|