Ruby header file detection should work with all ruby versions
* Config module generates warning in ruby >= 1.9 that generates error * Ruby >= 1.9 have different header file config name
This commit is contained in:
parent
bcbc422d26
commit
0f5363f6d2
@ -199,7 +199,7 @@ function! syntastic#c#CheckRuby()
|
||||
if executable('ruby')
|
||||
if !exists('s:ruby_flags')
|
||||
let s:ruby_flags = system('ruby -r rbconfig -e '
|
||||
\ . '''puts Config::CONFIG["archdir"]''')
|
||||
\ . '''puts RbConfig::CONFIG["rubyhdrdir"] || RbConfig::CONFIG["archdir"]''')
|
||||
let s:ruby_flags = substitute(s:ruby_flags, "\n", '', '')
|
||||
let s:ruby_flags = ' -I' . s:ruby_flags
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user