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:
Håvard Pettersson 2012-02-20 03:54:32 +01:00
parent 90b7a379c3
commit debae428d2

View File

@ -20,7 +20,12 @@ if !executable("nasm")
endif endif
function! SyntaxCheckers_nasm_GetLocList() 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' let errorformat = '%f:%l: %t%*[^:]: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction