From 0428cdc48b8932407ca499134ecaffb5ddc3ae09 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 31 May 2022 22:32:26 +0800 Subject: improve batchcmds --- xmake/modules/private/utils/batchcmds.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmake/modules/private/utils/batchcmds.lua') 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 -- cgit v1.3.1