From 27486d1e9015096eef5b59df0e78e2d6af4cd92f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 29 Nov 2024 22:49:03 +0800 Subject: improve comments --- xmake/modules/core/tools/gcc.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.3.1