summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-13 09:04:01 +0800
committerGitHub <[email protected]>2023-01-13 09:04:01 +0800
commit7b44db31bffbc7784a3dbb7ae0f0260e320ac6ca (patch)
treeed42cad187b114385eb251e62c2d2b8532b32adf /xmake/rules
parent51c2cda23592b381a39df2545639faadb077c12f (diff)
parent13b182347e73f7357d3acd22978141472d450e0d (diff)
Merge pull request #3283 from Arthapz/fix-dependency-paths
fix msvc modules dependency dir
Diffstat (limited to 'xmake/rules')
-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 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())