summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-03 22:18:36 +0800
committerruki <[email protected]>2019-04-03 07:51:38 +0800
commitadbcc87f0699702c32fa8dc63aa8aafaa1deca9d (patch)
treee0bc6b981218c77081878e2ec1ff0d14296c3c01 /xmake/modules/core/tools/nvcc.lua
parent09a1f710f009c7b90deea8a0e2c788551c03e66c (diff)
improve linker
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua3
1 files changed, 3 insertions, 0 deletions
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")