Skip to content

Commit

Permalink
fix pdb dir
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 19, 2024
1 parent cc5c003 commit b94cb84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b94cb84

Please sign in to comment.