From 6523b8eca65945c58d0ab3b254a9bc7bd446974a Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Sun, 14 Jan 2024 12:09:47 +0800 Subject: add cuda device debug symbols --- xmake/modules/core/tools/nvcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 42d826be4..e67dc0749 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -58,7 +58,7 @@ function nf_symbol(self, level, opt) -- debug? generate *.pdb file local flags = nil if level == "debug" then - flags = {"-g", "-lineinfo"} + flags = {"-G", "-g", "-lineinfo"} if self:is_plat("windows") then local host_flags = nil local symbolfile = nil -- cgit v1.3.1