diff options
| author | ruki <[email protected]> | 2022-05-21 00:35:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-21 00:35:48 +0800 |
| commit | 898c534357e92437f63a4f3e12f159e07534c20c (patch) | |
| tree | b76aef9cae9b7febf378410dc9934d4e400f5c42 /xmake/modules/private/cache/build_cache.lua | |
| parent | 2f45397ee666ff48c7bd7046c70a66bff37d47c6 (diff) | |
remove more ccache
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua index d6b4082d5..9fd9ca460 100644 --- a/xmake/modules/private/cache/build_cache.lua +++ b/xmake/modules/private/cache/build_cache.lua @@ -85,12 +85,12 @@ function hitrate() return 0 end - -- dump stats function dump_stats() local hit_count = (_g.hit_count or 0) local total_count = (_g.total_count or 0) local newfiles_count = (_g.newfiles_count or 0) + local preprocess_error_count = (_g.preprocess_error_count or 0) vprint("") vprint("build cache stats:") vprint("cache directory: %s", rootdir()) @@ -98,6 +98,8 @@ function dump_stats() vprint("cache hit: %d", hit_count) vprint("cache miss: %d", total_count - hit_count) vprint("new cached files: %d", newfiles_count) + vprint("preprocessor error: %d", preprocess_error_count) + vprint("") end -- get object file @@ -138,6 +140,8 @@ function build(program, argv, opt) end end os.rm(cppinfo.cppfile) + else + _g.preprocess_error_count = (_g.preprocess_error_count or 0) + 1 end return cppinfo end |
