From e5ddd73878d170312580a9284edd5521a2115873 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Thu, 18 Jul 2019 16:54:40 +0800 Subject: use -lineinfo for debug symbol --- 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 35318f37b..9f92e0425 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -63,7 +63,7 @@ function nf_symbol(self, level, target) -- debug? generate *.pdb file local flags = nil if level == "debug" then - flags = "-g -G" + flags = "-g -lineinfo" if is_plat("windows") then local host_flags = nil local symbolfile = nil -- cgit v1.3.1