summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuxi Chi <[email protected]>2024-09-18 18:37:59 +0800
committerGitHub <[email protected]>2024-09-18 18:37:59 +0800
commit6dc0581effa96e1810ba55f50e180cda830dca34 (patch)
tree765e3836a89a3b8eb1587b7b4432355e3b35b042
parentecfd44b5e5e0ca0d9f7ce5e592d870399f2bd4fe (diff)
add NDEBUG for cuflags
-rw-r--r--xmake/rules/mode/xmake.lua4
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)