Checker nvcc: minor bug fix.
This commit is contained in:
parent
eb2b9cfcd9
commit
23abc77a83
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-128'
|
let g:_SYNTASTIC_VERSION = '3.7.0-129'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
"============================================================================
|
"============================================================================
|
||||||
"File: cuda.vim
|
"File: cuda.vim
|
||||||
"Description: Syntax checking plugin for syntastic.vim
|
"Description: Syntax checking plugin for syntastic
|
||||||
"
|
|
||||||
"Author: Hannes Schulz <schulz at ais dot uni-bonn dot de>
|
"Author: Hannes Schulz <schulz at ais dot uni-bonn dot de>
|
||||||
"
|
"
|
||||||
"============================================================================
|
"============================================================================
|
||||||
@ -15,7 +14,7 @@ let s:save_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
|
function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
|
||||||
if exists('g:syntastic_cuda_arch')
|
if syntastic#util#var('cuda_arch') !=# ''
|
||||||
let arch_flag = '-arch=' . g:syntastic_cuda_arch
|
let arch_flag = '-arch=' . g:syntastic_cuda_arch
|
||||||
else
|
else
|
||||||
let arch_flag = ''
|
let arch_flag = ''
|
||||||
@ -41,8 +40,8 @@ function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
|
|||||||
\ '%DMaking %*\a in %f,'.
|
\ '%DMaking %*\a in %f,'.
|
||||||
\ '%f|%l| %m'
|
\ '%f|%l| %m'
|
||||||
|
|
||||||
if expand('%', 1) =~? '\m\%(.h\|.hpp\|.cuh\)$'
|
if index(['h', 'hpp', 'cuh'], expand('%:e', 1), 0, 1) >= 0
|
||||||
if exists('g:syntastic_cuda_check_header')
|
if syntastic#util#var('cuda_check_header', 0)
|
||||||
let makeprg =
|
let makeprg =
|
||||||
\ 'echo > .syntastic_dummy.cu ; ' .
|
\ 'echo > .syntastic_dummy.cu ; ' .
|
||||||
\ self.getExecEscaped() . ' ' . arch_flag .
|
\ self.getExecEscaped() . ' ' . arch_flag .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user