diff options
| author | ruki <[email protected]> | 2018-11-09 00:35:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-08 21:30:12 +0800 |
| commit | 76d817e3ba44fa51a285f5d36796da8d84a381da (patch) | |
| tree | 8c78061a2016245245f855751a9c43f1ed6a563e | |
| parent | 03cd8eb7dce64295cf9ed5a11695796d23a18019 (diff) | |
fix nvcc flags on windows
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 10 |
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 = |
