diff options
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index abb3b4841..7d4fda764 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -337,6 +337,9 @@ function _patch_pdbflags(objectfile, flags) if flag:find("-Fd", 1, true) or flag:find("/Fd", 1, true) then has_pdb = true end + if need_pdb and has_pdb then + break + end end -- add pdb output |
