diff options
| author | ruki <[email protected]> | 2022-06-11 20:06:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-06-11 20:06:08 +0800 |
| commit | 9cd7c17abd5060cc4aec2ee0943ccd2b641afb21 (patch) | |
| tree | a7e9e9b8c69ef9e0c3883f94df401b43d1890d17 /xmake/modules/core/tools/cl.lua | |
| parent | d6591287d047d23409d003a4ce68f7c75acb03a8 (diff) | |
improve cl/ccache
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
