summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-09 23:15:08 +0800
committerruki <[email protected]>2019-06-09 23:15:08 +0800
commit60ddb4c5a6725d11a7821d691dfd53c23df282bc (patch)
tree2cbce0fbb1afc08141761e18699fc23407b3f519 /xmake/core/tool/linker.lua
parent7a8d81f043060ace914fc13f3ca914419605ab27 (diff)
improve to the device link for cuda
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index 78d6a85f1..a82b12918 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -132,7 +132,7 @@ function linker.load(targetkind, sourcekinds, target)
local linkerinfo = linkerinfo_or_errors
-- init cache key
- local cachekey = linkerinfo.linkerkind .. (linkerinfo.program or "") .. (config.get("arch") or os.arch())
+ local cachekey = targetkind .. "_" .. linkerinfo.linkerkind .. (linkerinfo.program or "") .. (config.get("arch") or os.arch())
-- get it directly from cache dirst
builder._INSTANCES = builder._INSTANCES or {}
@@ -242,12 +242,6 @@ function linker:linkflags(opt)
-- add flags from the platform
self:_add_flags_from_platform(flags, targetkind)
- --[[
- -- add flags from the compiler
- if target then
- self:_add_flags_from_compiler(flags, target, targetkind)
- end]]
-
-- add flags from the linker
self:_add_flags_from_linker(flags)