diff options
| -rw-r--r-- | xmake/rules/mode/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua index 6ac40c487..8644f60f4 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) |
