From 5678e3f25fdeb5dc94b0ac6ad8db1fee0385daf6 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 20 Feb 2023 22:56:50 +0800 Subject: use devlink policy --- xmake/rules/cuda/devlink/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/cuda/devlink/xmake.lua') diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index da3bf8aef..b04acc883 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -37,7 +37,7 @@ rule("cuda.build.devlink") import("utils.progress") -- disable devlink? - local devlink = target:values("cuda.build.devlink") + local devlink = target:policy("build.cuda.devlink") or target:values("cuda.build.devlink") if devlink == false then return end -- cgit v1.3.1 From 27c69b5a6b23f1b597c320a6404c4612c6625cf3 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 20 Feb 2023 22:57:01 +0800 Subject: add comment --- xmake/rules/cuda/devlink/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake/rules/cuda/devlink/xmake.lua') diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index b04acc883..0e0a513df 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -37,6 +37,9 @@ rule("cuda.build.devlink") import("utils.progress") -- disable devlink? + -- + -- @note cuda.build.devlink value will be deprecated + -- local devlink = target:policy("build.cuda.devlink") or target:values("cuda.build.devlink") if devlink == false then return -- cgit v1.3.1