From 3c2e7e4ce37bc68b54f23c62efd0be291e6dc450 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 27 Aug 2015 14:49:19 +0300 Subject: [PATCH] Go checker: attempt to speed up builds (@gsalgado). --- plugin/syntastic.vim | 2 +- syntax_checkers/go/go.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index bff76af0..3856a3d5 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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 diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index ba521137..c03cea0b 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -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