From 14fb0573a09d6bd1bd64ea16890ee7220c7f8244 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 12 Jul 2019 14:19:13 +0800 Subject: add break --- xmake/modules/core/tools/cl.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1