summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-20 00:14:05 +0800
committerruki <[email protected]>2024-07-20 00:14:05 +0800
commitb94cb84a5f6bb49e933618a7a1394a057257047c (patch)
treed1da88434e1e71870e9b1d61c29881cbc5c9b48d
parentcc5c0036e9810b32cab78cbf5b9cd4638e80d68d (diff)
fix pdb dir
-rw-r--r--xmake/modules/package/tools/cmake.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 3e798cbc2..fdbf7bb73 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -982,8 +982,7 @@ function _build_for_ninja(package, configs, opt)
-- Fix pdb issue, if multiple CL.EXE write to the same .PDB file, please use /FS
-- @see https://github.com/xmake-io/xmake/issues/5353
if package:is_plat("windows") and package:has_tool("cxx", "cl") then
- local buildir = opt.buildir or package:buildir()
- local pdbdir = path.join(package:buildir(), "pdb")
+ local pdbdir = "pdb"
if not os.isdir(pdbdir) then
os.mkdir(pdbdir)
end
@@ -1075,8 +1074,7 @@ function _install_for_ninja(package, configs, opt)
-- Fix pdb issue, if multiple CL.EXE write to the same .PDB file, please use /FS
-- @see https://github.com/xmake-io/xmake/issues/5353
if package:is_plat("windows") and package:has_tool("cxx", "cl") then
- local buildir = opt.buildir or package:buildir()
- local pdbdir = path.join(package:buildir(), "pdb")
+ local pdbdir = "pdb"
if not os.isdir(pdbdir) then
os.mkdir(pdbdir)
end