diff options
Diffstat (limited to 'xmake/rules/c++/config/dynamic_debugging.lua')
| -rw-r--r-- | xmake/rules/c++/config/dynamic_debugging.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/c++/config/dynamic_debugging.lua b/xmake/rules/c++/config/dynamic_debugging.lua index b9ea4716a..e201bfe8a 100644 --- a/xmake/rules/c++/config/dynamic_debugging.lua +++ b/xmake/rules/c++/config/dynamic_debugging.lua @@ -83,6 +83,11 @@ function main(target, sourcekind) wprint("C++ Dynamic Debugging is incompatible with optimize=\"smallest\" (which adds /GL flag), consider using optimize=\"fastest\" or optimize=\"faster\" instead") end + -- /dynamicdeopt requires debug symbols (/Zi or /Z7) + if not target:get("symbols") then + target:set("symbols", "debug") + end + -- get flag name for sourcekind (only support cc and cxx) local cflag = sourcekind == "cxx" and "cxxflags" or "cflags" |
