From ced36fb1ccfaf8196dc28b49aa4a949040a0ab75 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Jun 2022 22:54:49 +0800 Subject: fix depfile --- xmake/modules/core/tools/cl.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 28a167486..1b0be7948 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -540,10 +540,9 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) -- generate includes file local compflags = flags - if dependinfo then if _has_source_dependencies(self) then - depfile = os.tmpfile() + depfile = os.tmpfile() .. ".json" compflags = table.join(flags, "/sourceDependencies", depfile) else compflags = table.join(flags, "-showIncludes") -- cgit v1.3.1