Set clang as the default C/C++/Obj-C/Obj-C++ compiler if gcc is not found.
This commit is contained in:
parent
1423f2815a
commit
e9b96912f1
@ -17,7 +17,7 @@ endif
|
|||||||
let g:loaded_syntastic_c_gcc_checker = 1
|
let g:loaded_syntastic_c_gcc_checker = 1
|
||||||
|
|
||||||
if !exists('g:syntastic_c_compiler')
|
if !exists('g:syntastic_c_compiler')
|
||||||
let g:syntastic_c_compiler = 'gcc'
|
let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_c_gcc_IsAvailable() dict
|
function! SyntaxCheckers_c_gcc_IsAvailable() dict
|
||||||
|
@ -16,7 +16,7 @@ endif
|
|||||||
let g:loaded_syntastic_cpp_gcc_checker = 1
|
let g:loaded_syntastic_cpp_gcc_checker = 1
|
||||||
|
|
||||||
if !exists('g:syntastic_cpp_compiler')
|
if !exists('g:syntastic_cpp_compiler')
|
||||||
let g:syntastic_cpp_compiler = 'g++'
|
let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_cpp_gcc_IsAvailable() dict
|
function! SyntaxCheckers_cpp_gcc_IsAvailable() dict
|
||||||
|
@ -16,7 +16,7 @@ endif
|
|||||||
let g:loaded_syntastic_objc_gcc_checker = 1
|
let g:loaded_syntastic_objc_gcc_checker = 1
|
||||||
|
|
||||||
if !exists('g:syntastic_objc_compiler')
|
if !exists('g:syntastic_objc_compiler')
|
||||||
let g:syntastic_objc_compiler = 'gcc'
|
let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_objc_gcc_IsAvailable() dict
|
function! SyntaxCheckers_objc_gcc_IsAvailable() dict
|
||||||
|
@ -16,7 +16,7 @@ endif
|
|||||||
let g:loaded_syntastic_objcpp_gcc_checker = 1
|
let g:loaded_syntastic_objcpp_gcc_checker = 1
|
||||||
|
|
||||||
if !exists('g:syntastic_objcpp_compiler')
|
if !exists('g:syntastic_objcpp_compiler')
|
||||||
let g:syntastic_objcpp_compiler = 'gcc'
|
let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict
|
function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict
|
||||||
|
Loading…
x
Reference in New Issue
Block a user