diff options
| author | ruki <[email protected]> | 2023-09-22 22:54:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-22 22:54:09 +0800 |
| commit | 3d4343f0044601da7f331c4bf879969eb3bd9bf2 (patch) | |
| tree | 84449f0385aba07410ce010dd3738fd5af4b52e9 /xmake/rules/c++/modules/modules_support | |
| parent | cb30d6458a236f498e6b6be917c9f653576577ca (diff) | |
improve to parse gcc deps with modules
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 762810f08..6cc5c29d6 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -123,7 +123,7 @@ function _build_modulefile(target, sourcefile, opt) local dependfile = opt.dependfile local compinst = compiler.load("cxx", {target = target}) local compflags = table.join("-x", "c++", compinst:compflags({sourcefile = sourcefile, target = target})) - local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {}) + local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile, {target = target}) or {}) -- need build this object? local dryrun = option.get("dry-run") |
