summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-04-30 22:06:21 +0800
committerruki <[email protected]>2023-04-30 22:06:21 +0800
commit3924adf378466e2ffebe768dde1c3c735449b69a (patch)
treeec585034b1ebea533b6786edc962f59d6e7602fb
parent3e670dccb9389dffec1195541069b1b10d969ce5 (diff)
improve depfiles
-rw-r--r--tests/projects/other/autogen_codedep/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/projects/other/autogen_codedep/xmake.lua b/tests/projects/other/autogen_codedep/xmake.lua
index b156c507f..229439fef 100644
--- a/tests/projects/other/autogen_codedep/xmake.lua
+++ b/tests/projects/other/autogen_codedep/xmake.lua
@@ -12,7 +12,7 @@ rule("autogen")
batchcmds:vrunv(target:dep("autogen"):targetfile(), {sourcefile, sourcefile_cx})
batchcmds:compile(sourcefile_cx, objectfile)
- batchcmds:add_depfiles(sourcefile)
+ batchcmds:add_depfiles(sourcefile, target:dep("autogen"):targetfile())
batchcmds:set_depmtime(os.mtime(objectfile))
batchcmds:set_depcache(target:dependfile(objectfile))
end)