summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiaozhu1337 <[email protected]>2023-03-27 17:39:29 +0800
committerGitHub <[email protected]>2023-03-27 17:39:29 +0800
commit0201a6aa2053aa2e1bbc5915db0f7196a42cf2eb (patch)
treef88ef0164de86b9b592332a76b32893ad58acfcb
parent0aa09bf07fe82468a08b5152f2001f5c185a6294 (diff)
match visual studio default behaviour
add DBG macro
-rw-r--r--xmake/rules/wdk/env/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/wdk/env/xmake.lua b/xmake/rules/wdk/env/xmake.lua
index a9089dc5e..a4a086433 100644
--- a/xmake/rules/wdk/env/xmake.lua
+++ b/xmake/rules/wdk/env/xmake.lua
@@ -18,6 +18,11 @@
-- @file xmake.lua
--
+-- match visual studio default behaviour
+if is_mode("debug") then
+ add_defines("DBG")
+end
+
-- define rule: environment
rule("wdk.env")