diff options
| author | ruki <[email protected]> | 2019-08-31 22:11:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-31 22:11:00 +0800 |
| commit | 9b62ca9a3bdccb9a37f80a6dd943dfd13a502a32 (patch) | |
| tree | 34f3b6fc417b0ec5cc73c722244527290f3a13d3 /xmake/rules/cuda/devlink/xmake.lua | |
| parent | e7ab648aa0bb953391204c6f081519421118e1d0 (diff) | |
fix all codes about sourcebatches
Diffstat (limited to 'xmake/rules/cuda/devlink/xmake.lua')
| -rw-r--r-- | xmake/rules/cuda/devlink/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index 2854bc0d7..83a719381 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -65,8 +65,8 @@ rule("cuda.devlink") -- get object files local objectfiles = nil - for sourcekind, sourcebatch in pairs(target:sourcebatches()) do - if sourcekind == "cu" then + for _, sourcebatch in pairs(target:sourcebatches()) do + if sourcebatch.sourcekind == "cu" then objectfiles = sourcebatch.objectfiles end end |
