From adbcc87f0699702c32fa8dc63aa8aafaa1deca9d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Apr 2019 22:18:36 +0800 Subject: improve linker --- xmake/modules/core/tools/nvcc.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake/modules/core/tools/nvcc.lua') diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 1e8186401..64bb24bad 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -32,6 +32,9 @@ import("detect.tools.find_ccache") -- init it function init(self) + -- init shflags + self:set("cu-shflags", "-shared") + -- init flags if not is_plat("windows") then self:set("shared.cuflags", "-Xcompiler -fPIC") -- cgit v1.3.1