summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-14 23:17:38 +0800
committerGitHub <[email protected]>2024-01-14 23:17:38 +0800
commit92bca5156bfb9f177a249031ac98f843f6958c0c (patch)
tree45ea0f2b63389a71645119b8ff60930b42d5a924
parent81264e21ce8cbafd7436dcbebd0ebb42f7d391eb (diff)
parent6523b8eca65945c58d0ab3b254a9bc7bd446974a (diff)
Merge pull request #4607 from xq114/dev
add cuda device debug symbols
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
1 files changed, 1 insertions, 1 deletions
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