Mercurial > vim-unreal
view compiler/uscriptwrapper.vim @ 11:06af9916ba7c default tip
Generate compilation database for clang by default
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 13:07:20 -0700 |
parents | 9235d8341a18 |
children |
line wrap: on
line source
" Compiler file that runs vim-unreal's script wapper " Compiler: Vim-unreal script wrapper " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> if exists("current_compiler") finish endif let current_compiler = "uscriptwrapper" let s:keepcpo = &cpo let s:prgpath = shellescape(unreal#get_vim_script_path("ScriptWrapper")) let s:prgargs = get(g:, '__unreal_makeprg_args', '') let s:prgcmdline = escape(s:prgpath.' '.s:prgargs, ' \"') call unreal#trace("Setting makeprg to: ".s:prgcmdline) execute "CompilerSet makeprg=".s:prgcmdline CompilerSet errorformat& let &cpo = s:keepcpo unlet s:keepcpo