summaryrefslogtreecommitdiff
path: root/xmake/rules/cuda/devlink/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-12 23:05:07 +0800
committerruki <[email protected]>2019-06-12 12:30:45 +0800
commitbf7331c60d83218fbf58431a7d757420549b60fa (patch)
tree773a04f74d4315dd9a7e8140583e8b76176d8203 /xmake/rules/cuda/devlink/xmake.lua
parenta42d2ff6c4b54bc63a4126c9f61ad83b7cb0f18a (diff)
use cuda.devlink value to disable devlink
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