diff options
| -rw-r--r-- | xmake/rules/cuda/devlink/xmake.lua | 5 |
1 files 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 |
