summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-13 22:39:51 +0800
committerruki <[email protected]>2022-06-13 22:39:51 +0800
commitfa8bcc5ad0405a6749fe3a53a5d019d5ff7c6747 (patch)
tree8d07564fb98db88ab07961a16b3205389d8dedff /xmake/modules/core/tools/gcc.lua
parentad3d6a56521f7389b93bcac78a4f97969d1fb0dc (diff)
fix warnings for cccache
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 53c283a39..00414c387 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -507,7 +507,10 @@ end
-- compile preprocessed file
function _compile_preprocessed_file(program, cppinfo, opt)
- os.iorunv(program, table.join(cppinfo.cppflags, "-o", cppinfo.objectfile, cppinfo.cppfile), opt)
+ local outdata, errdata = os.iorunv(program, table.join(cppinfo.cppflags, "-o", cppinfo.objectfile, cppinfo.cppfile), opt)
+ -- we need get warning information from output
+ cppinfo.outdata = outdata
+ cppinfo.errdata = errdata
end
-- do compile