Clisp: workaround to remove ciompiled files.
This commit is contained in:
parent
72e0593eae
commit
ba7d1b40bf
@ -19,9 +19,13 @@ let s:save_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
function! SyntaxCheckers_lisp_clisp_GetLocList() dict
|
function! SyntaxCheckers_lisp_clisp_GetLocList() dict
|
||||||
|
let tmpdir = syntastic#util#tmpdir()
|
||||||
|
let out = tmpdir != '.' ? ('-o ' . syntastic#util#shescape(tmpdir . syntastic#util#Slash() . 'syntastic_' . getpid())) : ''
|
||||||
|
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'args_after': '-q',
|
\ 'args_after': '-q',
|
||||||
\ 'fname_before': '-c' })
|
\ 'fname_before': '-c',
|
||||||
|
\ 'post_args_after': out })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%-G;%.%#,' .
|
\ '%-G;%.%#,' .
|
||||||
@ -33,10 +37,14 @@ function! SyntaxCheckers_lisp_clisp_GetLocList() dict
|
|||||||
\ '%Z %m,' .
|
\ '%Z %m,' .
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
return SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'defaults': {'bufnr': bufnr('')} })
|
\ 'defaults': {'bufnr': bufnr('')} })
|
||||||
|
|
||||||
|
call syntastic#util#rmrf(tmpdir)
|
||||||
|
|
||||||
|
return loclist
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user