Skip to content

Commit

Permalink
add NDEBUG for cuflags
Browse files Browse the repository at this point in the history
  • Loading branch information
cherichy authored Sep 18, 2024
1 parent ecfd44b commit 6dc0581
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmake/rules/mode/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 6dc0581

Please sign in to comment.