Set clang as the default C/C++/Obj-C/Obj-C++ compiler if gcc is not found.

This commit is contained in:
LCD 47 2014-01-03 08:56:02 +02:00
parent 1423f2815a
commit e9b96912f1
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ endif
let g:loaded_syntastic_c_gcc_checker = 1
if !exists('g:syntastic_c_compiler')
let g:syntastic_c_compiler = 'gcc'
let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
function! SyntaxCheckers_c_gcc_IsAvailable() dict

View File

@ -16,7 +16,7 @@ endif
let g:loaded_syntastic_cpp_gcc_checker = 1
if !exists('g:syntastic_cpp_compiler')
let g:syntastic_cpp_compiler = 'g++'
let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang'
endif
function! SyntaxCheckers_cpp_gcc_IsAvailable() dict

View File

@ -16,7 +16,7 @@ endif
let g:loaded_syntastic_objc_gcc_checker = 1
if !exists('g:syntastic_objc_compiler')
let g:syntastic_objc_compiler = 'gcc'
let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
function! SyntaxCheckers_objc_gcc_IsAvailable() dict

View File

@ -16,7 +16,7 @@ endif
let g:loaded_syntastic_objcpp_gcc_checker = 1
if !exists('g:syntastic_objcpp_compiler')
let g:syntastic_objcpp_compiler = 'gcc'
let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict