summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2023-07-20 13:40:05 +0800
committerGitHub <[email protected]>2023-07-20 13:40:05 +0800
commitcb6ac8efc7aecc0bf24d8a1844d0c76233cb84ea (patch)
treeff8906a307aaade5b12de4c00b8917a764891466 /xmake/modules/core/tools
parent032d2bf863f5c58ab8b4c36f86438d722b41ed6d (diff)
parentcb56a774d5d9852e49aa6fb4d2478ab0f88acbdd (diff)
Merge pull request #3981 from xq114/dev
fix nvcc debug flags
Diffstat (limited to 'xmake/modules/core/tools')
-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 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