diff options
| -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 |
