diff options
| author | ruki <[email protected]> | 2020-08-08 20:48:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-08 20:48:41 +0800 |
| commit | 0f6edb29f4d54a41ef0dc8e75acdc3d9d55b4eec (patch) | |
| tree | def301ee645803970a0c2fb5ff2674b8e22e00d3 /xmake/plugins | |
| parent | af028ea4b77a0183650289b4810f9170384e97e1 (diff) | |
fix vs compcmd for as
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index 3e9de321f..803e00607 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -58,7 +58,10 @@ end -- make compiling command function _make_compcmd(compargv, sourcefile, objectfile, vcxprojdir) local argv = {} - for _, v in ipairs(compargv) do + for i, v in ipairs(compargv) do + if i == 1 then + v = path.filename(v) -- C:\xxx\ml.exe -> ml.exe + end v = v:gsub("__sourcefile__", sourcefile) v = v:gsub("__objectfile__", objectfile) -- -Idir or /Idir |
