From 6dc0581effa96e1810ba55f50e180cda830dca34 Mon Sep 17 00:00:00 2001 From: Yuxi Chi Date: Wed, 18 Sep 2024 18:37:59 +0800 Subject: [PATCH] add NDEBUG for cuflags --- xmake/rules/mode/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua index 6ac40c487b2..8644f60f43f 100644 --- a/xmake/rules/mode/xmake.lua +++ b/xmake/rules/mode/xmake.lua @@ -65,6 +65,7 @@ rule("mode.release") -- enable NDEBUG macros to disables standard-C assertions target:add("cxflags", "-DNDEBUG") + target:add("cuflags", "-DNDEBUG") end end) @@ -96,6 +97,7 @@ rule("mode.releasedbg") -- enable NDEBUG macros to disables standard-C assertions target:add("cxflags", "-DNDEBUG") + target:add("cuflags", "-DNDEBUG") end end) @@ -123,6 +125,7 @@ rule("mode.minsizerel") -- enable NDEBUG macros to disables standard-C assertions target:add("cxflags", "-DNDEBUG") + target:add("cuflags", "-DNDEBUG") end end) @@ -154,6 +157,7 @@ rule("mode.profile") -- enable NDEBUG macros to disables standard-C assertions target:add("cxflags", "-DNDEBUG") + target:add("cuflags", "-DNDEBUG") end end)