Skip to content

Commit

Permalink
Merge pull request #5988 from 19317362/wps
Browse files Browse the repository at this point in the history
[fix] error path escape for windows + android ndk  --sysroot= c: path…
  • Loading branch information
waruqi authored Dec 20, 2024
2 parents 2e4a9d3 + 75c7054 commit ca53159
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmake/plugins/project/cmake/cmakelists.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ end
-- escape path in flag
-- @see https://github.com/xmake-io/xmake/issues/3161
function _escape_path_in_flag(target, flag)
if is_host("windows") and target:has_tool("cc", "cl") then
-- e.g. /ManifestInput:xx, /def:xxx
if flag:find(":", 1, true) then
if is_host("windows") then
-- e.g. /ManifestInput:..\..\, /def:xxx, -isystem c:\xxx, -Ic:\..
if flag:find("\\", 1, true) then
flag = _escape_path(flag)
end
end
Expand Down

0 comments on commit ca53159

Please sign in to comment.