diff options
| author | Hoildkv <[email protected]> | 2022-01-14 22:16:22 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-14 22:16:22 +0800 |
| commit | f482404527236aa73d0bd0614ce85cac0ef932e5 (patch) | |
| tree | 9a5b0b55b99cb9f36f2ad527be3e30737d7ab7ac | |
| parent | e628a134af84c81f725bb63bcfe0b6b3245e7da6 (diff) | |
Update xmake.lua
| -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 |
