Go checker: attempt to speed up builds (@gsalgado).

This commit is contained in:
LCD 47 2015-08-27 14:49:19 +03:00
parent 13727dd464
commit 3c2e7e4ce3
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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