From 59f8173e866dfbd2b073a204c6d2b5002b3c6d4e Mon Sep 17 00:00:00 2001 From: Aurorabili Date: Mon, 4 Nov 2024 10:57:38 +0000 Subject: fix(#5777): add cuflags '-lineinfo' to mode.releasedbg Signed-off-by: Aurorabili --- xmake/rules/mode/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.3.1