summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-02 09:29:59 +0800
committerGitHub <[email protected]>2021-12-02 09:29:59 +0800
commita90ff45e12c17e3888716bd9dfcdebf4faadd704 (patch)
treec35a110793c03654702e485ec8031915c6fbe7ad /xmake/modules/core/tools/cl.lua
parenta4b6edd7ec3c8115caf883c6ea23e7d0c9f649eb (diff)
Update cl.lua
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 c4cf109bf..d84f4c7c1 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -118,7 +118,7 @@ function nf_symbols(self, levels, target)
end
-- check and add symbol output file
- local pdbflags = "-Fd" .. path.join(symboldir, "compile." .. path.filename(symbolfile))
+ local pdbflags = "-Fd" .. (target:is_static() and symbolfile or path.join(symboldir, "compile." .. path.filename(symbolfile)))
if self:has_flags({"-FS", "-Fd" .. os.nuldev() .. ".pdb"}, "cxflags", { flagskey = "-FS -Fd" }) then
pdbflags = {"-FS", pdbflags}
end