From cb56a774d5d9852e49aa6fb4d2478ab0f88acbdd Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Thu, 20 Jul 2023 10:32:19 +0800 Subject: fix nvcc debug flags --- xmake/modules/core/tools/nvcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/core/tools/nvcc.lua') diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 8c3492389..038e2e75a 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -58,7 +58,7 @@ function nf_symbol(self, level, target) -- 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