summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/clang.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-04 23:27:28 +0200
committerArthur LAURENT <[email protected]>2022-08-04 23:27:28 +0200
commit6c27288e6156c41ad754c7a195faaf40dcce0c18 (patch)
tree9e0c46562d0efa2fa4d6de87ba726c2d54919643 /xmake/rules/c++/modules/modules_support/clang.lua
parent92bd964f8e420a2bb72fd82a17603b5fddc865d3 (diff)
Fix bmi generation path when module is generated by build chain
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index 7d841a2be..fd71b298f 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -112,7 +112,7 @@ function generate_dependencies(target, sourcebatch, opt)
depend.on_changed(function()
progress.show(opt.progress, "${color.build.object}generating.cxx.module.deps %s", sourcefile)
- local outdir = path.translate(path.join(cachedir, path.directory(path.relative(sourcefile, target:scriptdir()))))
+ local outdir = path.translate(path.join(cachedir, path.directory(path.relative(sourcefile, projectdir))))
if not os.isdir(outdir) then
os.mkdir(outdir)
end