summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-21 22:12:18 +0800
committerruki <[email protected]>2020-03-21 22:12:18 +0800
commit9c4129312ae14de2725230c2c1caf38fa849dfa8 (patch)
tree46bdef24268212d0840a735e17f8cbaf268b7241 /xmake/modules/core/tools/cl.lua
parent1429067bf099b4880c000421e8b53d3c3341f66d (diff)
improve clang-cl
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 4080bb056..e0b271d88 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -354,6 +354,9 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
{
function (errors)
+ -- try removing the old object file for forcing to rebuild this source file
+ os.tryrm(objectfile)
+
-- use cl/stdout as errors first from vstool.iorunv()
if type(errors) == "table" then
local errs = errors.stdout or ""
@@ -363,9 +366,6 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
errors = errs
end
- -- try removing the old object file for forcing to rebuild this source file
- os.tryrm(objectfile)
-
-- filter includes notes: "Note: including file: xxx.h", @note maybe not english language
local results = ""
for _, line in ipairs(tostring(errors):split("\n", {plain = true})) do