summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 9e1a658a7..10ac810f3 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -810,6 +810,8 @@ function _compile_preprocessed_file(program, cppinfo, opt)
end
local outdata, errdata = os.iorunv(program, argv, opt)
-- we need to get warning information from output
+ -- and we need to reserve warnings output from preprocessing
+ -- @see https://github.com/xmake-io/xmake/issues/5858
if outdata then
cppinfo.outdata = (cppinfo.outdata or "") .. outdata
end