summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/nvcc.lua10
1 files 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 =