summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-11 22:54:49 +0800
committerruki <[email protected]>2022-06-11 22:54:49 +0800
commitced36fb1ccfaf8196dc28b49aa4a949040a0ab75 (patch)
treedf3d0fd92b6658734785e67654f8d3c9ad5a649d /xmake/modules/core/tools/cl.lua
parent9cd7c17abd5060cc4aec2ee0943ccd2b641afb21 (diff)
fix depfile
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua3
1 files changed, 1 insertions, 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")