From 13b182347e73f7357d3acd22978141472d450e0d Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 12 Jan 2023 19:40:21 +0100 Subject: fix msvc modules dependency dir --- xmake/rules/c++/modules/modules_support/clang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 4d1f07747..06e9de0ee 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -236,6 +236,7 @@ end function generate_dependencies(target, sourcebatch, opt) local changed = false local cachedir = common.modules_cachedir(target) + local projectdir = os.projectdir() for _, sourcefile in ipairs(sourcebatch.sourcefiles) do local dependfile = target:dependfile(sourcefile) depend.on_changed(function() @@ -361,7 +362,6 @@ function generate_stl_headerunits_for_batchcmds(target, batchcmds, headerunits, assert(has_headerunitsupport(target), "compiler(clang): does not support c++ header units!") -- build headerunits - local projectdir = os.projectdir() local depmtime = 0 for i, headerunit in ipairs(headerunits) do local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension()) -- cgit v1.3.1