mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
@@ -13,7 +13,7 @@ local is_os = helpers.is_os
|
||||
local is_ci = helpers.is_ci
|
||||
|
||||
local function isasan()
|
||||
local version = eval('execute("version")')
|
||||
local version = eval('execute("verbose version")')
|
||||
return version:match('-fsanitize=[a-z,]*address')
|
||||
end
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ endfunc
|
||||
" Command to check for not running under ASAN
|
||||
command CheckNotAsan call CheckNotAsan()
|
||||
func CheckNotAsan()
|
||||
if execute('version') =~# '-fsanitize=[a-z,]*\<address\>'
|
||||
if execute('verbose version') =~# '-fsanitize=[a-z,]*\<address\>'
|
||||
throw 'Skipped: does not work with ASAN'
|
||||
endif
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user