From 9cd7c17abd5060cc4aec2ee0943ccd2b641afb21 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Jun 2022 20:06:08 +0800 Subject: improve cl/ccache --- xmake/modules/core/tools/cl.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 5969c3844..28a167486 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -467,9 +467,10 @@ function _preprocess(program, argv, opt) if not os.isdir(cppfiledir) then os.mkdir(cppfiledir) end - table.insert(cppflags, "-E") if linemarkers == false then table.insert(cppflags, "-EP") + else + table.insert(cppflags, "-E") end table.insert(cppflags, sourcefile) return try{ function() -- cgit v1.3.1