summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-15 11:09:38 +0800
committerGitHub <[email protected]>2023-09-15 11:09:38 +0800
commit63532f552099a0e3f29c7ebc497b6c15ab5bfcfe (patch)
tree0d5836212f1e3bda0185531c8bbcd9d605360452
parent49955f31fb09851dd6619f67f70ecc6a0b067272 (diff)
Update clang.lua
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index 8bd94eb2b..265b0247e 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -236,7 +236,6 @@ end
-- do compile for batchcmds
-- @note we need to use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
function _batchcmds_compile(batchcmds, target, flags, sourcefile)
- opt = opt or {}
local compinst = target:compiler("cxx")
local compflags = compinst:compflags({sourcefile = sourcefile, target = target})
batchcmds:compilev(table.join(compflags or {}, flags), {compiler = compinst, sourcekind = "cxx"})