summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurorabili <[email protected]>2024-11-04 10:57:38 +0000
committerAurorabili <[email protected]>2024-11-04 10:57:38 +0000
commit59f8173e866dfbd2b073a204c6d2b5002b3c6d4e (patch)
tree5aee946bf87089617687182684855f9a037ca5ab
parentf01ed0a230e0bbf93e53551df27d8c6170a689c4 (diff)
fix(#5777): add cuflags '-lineinfo' to mode.releasedbg
Signed-off-by: Aurorabili <[email protected]>
-rw-r--r--xmake/rules/mode/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua
index f554ce93d..308dec90f 100644
--- a/xmake/rules/mode/xmake.lua
+++ b/xmake/rules/mode/xmake.lua
@@ -101,6 +101,9 @@ rule("mode.releasedbg")
-- enable NDEBUG macros to disables standard-C assertions
target:add("cxflags", "-DNDEBUG")
target:add("cuflags", "-DNDEBUG")
+
+ -- #5777: '--device-debug (-G)' overrides '--generate-line-info (-lineinfo)' in nvcc
+ target:add("cuflags", "-lineinfo")
end
end)