diff options
| author | ruki <[email protected]> | 2024-07-20 00:14:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-20 00:14:05 +0800 |
| commit | b94cb84a5f6bb49e933618a7a1394a057257047c (patch) | |
| tree | d1da88434e1e71870e9b1d61c29881cbc5c9b48d | |
| parent | cc5c0036e9810b32cab78cbf5b9cd4638e80d68d (diff) | |
fix pdb dir
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 6 |
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 |
