Go checker: attempt to speed up builds (@gsalgado).
This commit is contained in:
parent
13727dd464
commit
3c2e7e4ce3
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-147'
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-149'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -51,11 +51,11 @@ function! SyntaxCheckers_go_go_GetLocList() dict
|
||||
" compiled by `go build`, therefore `go test` must be called for those.
|
||||
if match(expand('%', 1), '\m_test\.go$') == -1
|
||||
let cmd = 'build'
|
||||
let opts = syntastic#util#var('go_go_build_args')
|
||||
let opts = syntastic#util#var('go_go_build_args', '-buildmode=archive')
|
||||
let cleanup = 0
|
||||
else
|
||||
let cmd = 'test -c'
|
||||
let opts = syntastic#util#var('go_go_test_args')
|
||||
let opts = syntastic#util#var('go_go_test_args', '-buildmode=archive')
|
||||
let cleanup = 1
|
||||
endif
|
||||
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
||||
|
Loading…
x
Reference in New Issue
Block a user