diff options
| author | Arthur LAURENT <[email protected]> | 2025-11-07 22:46:49 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-11-07 22:46:49 +0100 |
| commit | 067f395b418f64b29488184bd6bcec910b94e44d (patch) | |
| tree | 1043cde2306694be74cb82beb8634f763d3ef2d0 /xmake/rules/c++/modules/gcc | |
| parent | 0b91f564b00bf22d611a70c17088ba3a155b8a84 (diff) | |
(modules) don't rescan std and packages modules when using -r
Diffstat (limited to 'xmake/rules/c++/modules/gcc')
| -rw-r--r-- | xmake/rules/c++/modules/gcc/scanner.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/gcc/scanner.lua b/xmake/rules/c++/modules/gcc/scanner.lua index 862df3c43..b0cdda7af 100644 --- a/xmake/rules/c++/modules/gcc/scanner.lua +++ b/xmake/rules/c++/modules/gcc/scanner.lua @@ -28,7 +28,7 @@ import("builder") import(".scanner", {inherit = true}) -- scan module dependencies -function scan_dependency_for(target, sourcefile, opt) +function scan_dependency_for(target, sourcefile, rescan, opt) local compinst = target:compiler("cxx") local baselineflags = {"-E", "-x", "c++"} @@ -77,7 +77,7 @@ function scan_dependency_for(target, sourcefile, opt) local dependinfo = io.readfile(jsonfile) return { moduleinfo = dependinfo } - end, {dependfile = dependfile, files = {sourcefile}, changed = target:is_rebuilt(), values = compflags}) + end, {dependfile = dependfile, files = {sourcefile}, changed = rescan, values = compflags}) return changed end |
