summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/build/object.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-22 22:54:09 +0800
committerruki <[email protected]>2023-09-22 22:54:09 +0800
commit3d4343f0044601da7f331c4bf879969eb3bd9bf2 (patch)
tree84449f0385aba07410ce010dd3738fd5af4b52e9 /xmake/modules/private/action/build/object.lua
parentcb30d6458a236f498e6b6be917c9f653576577ca (diff)
improve to parse gcc deps with modules
Diffstat (limited to 'xmake/modules/private/action/build/object.lua')
-rw-r--r--xmake/modules/private/action/build/object.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua
index ea6f3035a..486c2e7ce 100644
--- a/xmake/modules/private/action/build/object.lua
+++ b/xmake/modules/private/action/build/object.lua
@@ -43,7 +43,7 @@ function _do_build_file(target, sourcefile, opt)
local compflags = compinst:compflags({target = target, sourcefile = sourcefile, configs = opt.configs})
-- load dependent info
- local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {})
+ local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile, {target = target}) or {})
-- dry run?
local dryrun = option.get("dry-run")