diff options
| author | ruki <[email protected]> | 2022-08-06 00:10:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-06 00:10:06 +0800 |
| commit | b0379bcadce0b66fa5d3e5fc45d85a8ba365c92b (patch) | |
| tree | 725da3c3598435f6376af32b018f5628e4d504b3 /xmake/rules/c++/modules/modules_support/clang.lua | |
| parent | 53c31dfffd73cd635a6512d49b902e8c45dca102 (diff) | |
cache module deps
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 89dbf4467..18243fadf 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -106,6 +106,7 @@ end -- generate dependency files function generate_dependencies(target, sourcebatch, opt) + local changed = false local cachedir = common.modules_cachedir(target) for _, sourcefile in ipairs(sourcebatch.sourcefiles) do local dependfile = target:dependfile(sourcefile) @@ -122,11 +123,13 @@ function generate_dependencies(target, sourcebatch, opt) -- no support of p1689 atm local jsonfile = path.translate(path.join(outdir, path.filename(sourcefile) .. ".json")) common.fallback_generate_dependencies(target, jsonfile, sourcefile) + changed = true local dependinfo = io.readfile(jsonfile) return { moduleinfo = dependinfo } end, {dependfile = dependfile, files = {sourcefile}}) end + return changed end -- generate target stl header units for batchcmds |
