summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-18 17:24:18 +0800
committerGitHub <[email protected]>2019-07-18 17:24:18 +0800
commit18f63d13bc56b6d22be8ae5ba4d3db9b398a17b8 (patch)
tree3f0592b0bf2f1a2bd552e99b0fad9a50370c2fe7
parent85eb16ea22b00d1b35e2b3bd3ce88b9c73eca9b4 (diff)
parente5ddd73878d170312580a9284edd5521a2115873 (diff)
Merge pull request #496 from OpportunityLiu/cuda-flag
use -lineinfo for cuda debug symbol
-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 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