From f482404527236aa73d0bd0614ce85cac0ef932e5 Mon Sep 17 00:00:00 2001 From: Hoildkv <42310255+xq114@users.noreply.github.com> Date: Fri, 14 Jan 2022 22:16:22 +0800 Subject: Update xmake.lua --- xmake/rules/cuda/devlink/xmake.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index fb1f603b0..2f24f3f2b 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -41,9 +41,10 @@ rule("cuda.build.devlink") return end - -- only for binary/shared + -- only for binary/shared on non-windows platforms + -- https://github.com/xmake-io/xmake/issues/1976 local targetkind = target:kind() - if targetkind ~= "binary" and targetkind ~= "shared" then + if target:values("cuda.build.devlink") != true and not target:is_plat("windows") and targetkind ~= "binary" and targetkind ~= "shared" then return end -- cgit v1.3.1