diff options
| author | ruki <[email protected]> | 2021-11-16 09:31:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-16 09:31:17 +0800 |
| commit | 8c67fe903098afed989fb9ba64881fb7267bca49 (patch) | |
| tree | cb5e44fad986423d3221e6b6edf2a1a37b480dcc /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | 6060388361136e757cc2e3f189ffdd1276b47993 (diff) | |
improve vs generator
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 1db739f1d..d366649da 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -56,8 +56,7 @@ function _get_command_string(cmd) if cmd.program then local command = os.args(table.join(cmd.program, cmd.argv)) if opt and opt.curdir then - command = "cd \"" .. opt.curdir .. "\"\n" .. command - -- TODO cd oldir + command = string.format("pushd \"%s\"\n%s\npopd", opt.curdir, command) end return command elseif kind == "cp" then |
