summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/dmd.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/dmd.lua
parent1b1ed22d618e6c31ede1cf2f1168476b504f5deb (diff)
improve to parser deps
Diffstat (limited to 'xmake/modules/core/tools/dmd.lua')
-rw-r--r--xmake/modules/core/tools/dmd.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua
index 4a14acfac..47378c570 100644
--- a/xmake/modules/core/tools/dmd.lua
+++ b/xmake/modules/core/tools/dmd.lua
@@ -267,7 +267,8 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
if depfile and os.isfile(depfile) then
if dependinfo then
-- it use makefile/gcc compatiable format
- dependinfo.depfiles_gcc = io.readfile(depfile, {continuation = "\\"})
+ dependinfo.depfiles_format = "gcc"
+ dependinfo.depfiles = io.readfile(depfile, {continuation = "\\"})
end
-- remove the temporary dependent file