NASM syntax checker fixes.
- Redirect output to /dev/null or NUL, to get rid of the trash .o file. - Some extra arguments to make sure NASM will always use the same settings.
This commit is contained in:
parent
90b7a379c3
commit
debae428d2
@ -20,7 +20,12 @@ if !executable("nasm")
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_nasm_GetLocList()
|
||||
let makeprg = "nasm " . shellescape(expand("%"))
|
||||
if has("win32")
|
||||
let outfile="NUL"
|
||||
else
|
||||
let outfile="/dev/null"
|
||||
endif
|
||||
let makeprg = "nasm -X gnu -f elf -o " . outfile . " " . shellescape(expand("%"))
|
||||
let errorformat = '%f:%l: %t%*[^:]: %m'
|
||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user