diff options
| author | ruki <[email protected]> | 2019-03-06 13:50:58 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-03-06 13:50:58 +0800 |
| commit | b2590d72ae5de165387ac8462d312c3c44900558 (patch) | |
| tree | 890ec0dbe426a73568a046f908db384aacee5633 | |
| parent | fe9665459a9a0aa7097b4110f8ee47dc46b93555 (diff) | |
fix /I to -I for yasm cmd
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index 172792949..7a8f791c7 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -94,12 +94,12 @@ function _make_compcmd(compargv, sourcefile, objectfile, vcxprojdir) v = v:gsub("__sourcefile__", sourcefile) v = v:gsub("__objectfile__", objectfile) -- -Idir or /Idir - v = v:gsub("[%-/]I(.*)", function (dir) + v = v:gsub("([%-/]I)(.*)", function (I, dir) dir = path.translate(dir:trim()) if not path.is_absolute(dir) then dir = path.relative(path.absolute(dir), vcxprojdir) end - return "/I" .. dir + return I .. dir end) table.insert(argv, v) end |
