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)