summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/batchcmds.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-31 22:32:26 +0800
committerruki <[email protected]>2022-05-31 22:32:26 +0800
commit0428cdc48b8932407ca499134ecaffb5ddc3ae09 (patch)
tree1acd9286a76be6263edb4b7aa572c65895c29777 /xmake/modules/private/utils/batchcmds.lua
parent64c41bd8ef06038cebdbbf39a85da51d69e718e7 (diff)
improve batchcmds
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
-rw-r--r--xmake/modules/private/utils/batchcmds.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua
index cf2c421d9..f2a611d9a 100644
--- a/xmake/modules/private/utils/batchcmds.lua
+++ b/xmake/modules/private/utils/batchcmds.lua
@@ -248,6 +248,8 @@ function batchcmds:compile(sourcefiles, objectfile, opt)
argv[idx] = path(item:sub(3), function (p) return "-I" .. p end)
elseif item:startswith("/I") then
argv[idx] = path(item:sub(3), function (p) return "/I" .. p end)
+ elseif item:startswith("-external:I") or item:startswith("/external:I") then
+ argv[idx] = path(item:sub(12), function (p) return "-external:I" .. p end)
end
end
end