summaryrefslogtreecommitdiff
path: root/xmake/rules/cuda/devlink/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/cuda/devlink/xmake.lua')
-rw-r--r--xmake/rules/cuda/devlink/xmake.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua
index f3ae08bc2..9df1a32ee 100644
--- a/xmake/rules/cuda/devlink/xmake.lua
+++ b/xmake/rules/cuda/devlink/xmake.lua
@@ -18,13 +18,7 @@
-- @file xmake.lua
--
--- define rule: disable the default device-link
-rule("cuda.nodevlink")
- before_load(function (target)
- target:data_set("cuda.nodevlink", true)
- end)
-
--- define rule: device-link (default)
+-- define rule: device-link
rule("cuda.devlink")
-- add rule: cuda environment
@@ -40,7 +34,7 @@ rule("cuda.devlink")
before_link(function (target, opt)
-- disable devlink?
- if target:data("cuda.nodevlink") then
+ if target:values("cuda.devlink") == false then
return
end