summaryrefslogtreecommitdiff
path: root/xmake/modules/private/cache/build_cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-19 21:54:02 +0800
committerruki <[email protected]>2022-06-19 21:54:02 +0800
commit644e491a56321b3bf0fd0e47b6af83b55d5cdd6a (patch)
tree7dbbc4a185c6a4d41ff8b13c69f82d6f813feaf6 /xmake/modules/private/cache/build_cache.lua
parent5272495ba9a1963a3c6ba4dc027614748b6896f2 (diff)
get outdata for fallback
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
-rw-r--r--xmake/modules/private/cache/build_cache.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua
index a06aabe50..4ded1d5c9 100644
--- a/xmake/modules/private/cache/build_cache.lua
+++ b/xmake/modules/private/cache/build_cache.lua
@@ -201,7 +201,9 @@ function build(program, argv, opt)
if not ok then
-- we fallback to compile original source file if compiling preprocessed file fails.
-- https://github.com/xmake-io/xmake/issues/2467
- compile_fallback()
+ local outdata, errdata = compile_fallback()
+ cppinfo.outdata = outdata
+ cppinfo.errdata = errdata
_g.compile_fallback_count = (_g.compile_fallback_count or 0) + 1
end
else