summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-23 11:34:25 +0800
committerOpportunityLiu <[email protected]>2019-07-23 11:34:25 +0800
commit23e1f7cc177c5cc6e2fd12c627bd7d2bc86d72c2 (patch)
tree8c775b49dfa55a3f822d905de2944de18c7d2714 /xmake/modules/core/tools/cl.lua
parent42f44fa0a7a7c44a2e4eab067ebf56364bfabc2f (diff)
improve check flags with file
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 8e3c0bd1b..06fb9e2fc 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -104,7 +104,7 @@ function nf_symbol(self, level, target)
-- check and add symbol output file
flags = "-Zi -Fd" .. path.join(symboldir, "compile." .. path.filename(symbolfile))
- if self:has_flags({"-Zi", "-FS", "-Fd" .. os.tmpfile() .. ".pdb"}, "cxflags") then
+ if self:has_flags({"-Zi", "-FS", "-Fd" .. os.nuldev() .. ".pdb"}, "cxflags", { flagskey = "-Zi -FS -Fd" }) then
flags = "-FS " .. flags
end
else