summaryrefslogtreecommitdiff
path: root/xmake/rules/cuda
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-17 13:03:53 +0800
committerOpportunityLiu <[email protected]>2019-07-17 13:03:53 +0800
commite7bcde1188f02ac07e64f6b9a798e0b1ca1e049c (patch)
tree729456608e65cc8d37f9c026682a661eae272e43 /xmake/rules/cuda
parentcc8285058df86891bac366fdeac8086efa23d48b (diff)
set debugger path
Diffstat (limited to 'xmake/rules/cuda')
-rw-r--r--xmake/rules/cuda/env/xmake.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/rules/cuda/env/xmake.lua b/xmake/rules/cuda/env/xmake.lua
index 58aa13c0f..f69a1bea5 100644
--- a/xmake/rules/cuda/env/xmake.lua
+++ b/xmake/rules/cuda/env/xmake.lua
@@ -83,8 +83,11 @@ rule("cuda.env")
import("lib.detect.find_tool")
local debugger = config.get("debugger")
- if not debugger and find_tool("cudagdb") then
- config.set("debugger", "cudagdb")
+ if not debugger then
+ local cudagdb = find_tool("cudagdb")
+ if cudagdb then
+ config.set("debugger", cudagdb.program)
+ end
end
end)