From 76d817e3ba44fa51a285f5d36796da8d84a381da Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 9 Nov 2018 00:35:02 +0800 Subject: fix nvcc flags on windows --- xmake/modules/core/tools/nvcc.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index ab35d93c8..366328f5b 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -35,11 +35,11 @@ function init(self) -- init flags _g.cuflags = {} _g.ldflags = {} - _g.shflags = { "-shared", "-fPIC" } - - -- init cuflags for the kind: shared - _g.shared = {} - _g.shared.cuflags = {"-fPIC"} + if not is_plat("windows") then + _g.shflags = { "-shared", "-fPIC" } + _g.shared = {} + _g.shared.cuflags = {"-fPIC"} + end -- init flags map _g.mapflags = -- cgit v1.3.1