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