summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-12 14:19:13 +0800
committerOpportunityLiu <[email protected]>2019-07-12 14:19:13 +0800
commit14fb0573a09d6bd1bd64ea16890ee7220c7f8244 (patch)
tree33521f634663c76eda8c1521cf729a3b2373ad25
parenta6fbe448d1c1f39d424217189677ba7bababf65f (diff)
add break
-rw-r--r--xmake/modules/core/tools/cl.lua3
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