Skip to content

Commit

Permalink
Merge pull request #5633 from cherichy/patch-1
Browse files Browse the repository at this point in the history
add NDEBUG for cuflags
  • Loading branch information
waruqi authored Sep 18, 2024
2 parents ecfd44b + 6dc0581 commit 590fe4c
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 590fe4c

Please sign in to comment.