summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-24 23:03:27 +0800
committerruki <[email protected]>2025-01-24 23:03:27 +0800
commit8be99bc6983b35ef18ed2147487fd28118bd34d7 (patch)
tree4d0640a38ae140ee4d18320168de7d621a9e419c /xmake/modules/core/tools/cl.lua
parent1b1ed22d618e6c31ede1cf2f1168476b504f5deb (diff)
improve to parser deps
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index dab766482..8a2971328 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -778,10 +778,12 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
-- generate the dependent includes
if dependinfo then
if depfile and os.isfile(depfile) then
- dependinfo.depfiles_cl_json = io.readfile(depfile)
+ dependinfo.depfiles_format = "cl_json"
+ dependinfo.depfiles = io.readfile(depfile)
os.tryrm(depfile)
elseif outdata then
- dependinfo.depfiles_cl = outdata
+ dependinfo.depfiles_format = "cl"
+ dependinfo.depfiles = outdata
end
end
end