Mercurial > vim-unreal
view compiler/uscriptwrapper.vim @ 2:9235d8341a18
Refactor the build system invocation commands.
Now we have proper knowledge of the projects inside a codebase ("branch"). The
plugin should correctly parse configuration names, find the correct module to
build based on the configuration, and so on.
Also, added support for generating the clang compilation database.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 22 Jan 2021 16:38:18 -0800 |
parents | |
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