summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-12 23:05:07 +0800
committerruki <[email protected]>2019-06-12 12:30:45 +0800
commitbf7331c60d83218fbf58431a7d757420549b60fa (patch)
tree773a04f74d4315dd9a7e8140583e8b76176d8203 /xmake/core/project/target.lua
parenta42d2ff6c4b54bc63a4126c9f61ad83b7cb0f18a (diff)
use cuda.devlink value to disable devlink
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 03fc633af..fbb6f734c 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -333,7 +333,12 @@ function _instance:values(name, sourcefile)
-- get values from target
table.join2(values, self:get("values." .. name))
- return #values > 0 and table.unwrap(values) or nil
+ if #values > 0 then
+ values = table.unwrap(values)
+ else
+ values = nil
+ end
+ return values
end
-- set values