From 60ddb4c5a6725d11a7821d691dfd53c23df282bc Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 9 Jun 2019 23:15:08 +0800 Subject: improve to the device link for cuda --- xmake/core/tool/linker.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'xmake/core/tool/linker.lua') 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) -- cgit v1.3.1