summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 05afaf1b9..4048929b8 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -20,7 +20,7 @@
-- imports
import("core.base.option")
-import("core.tool.tool")
+import("core.tool.compiler")
import("core.project.config")
import("core.project.project")
import("core.language.language")
@@ -72,15 +72,17 @@ function nf_warning(self, level)
-- the maps
local maps =
{
- none = "-w"
- , less = "-W1"
- , more = "-W3"
- , all = "-Wall"
- , error = "-Werror"
+ none = "-w"
+ , less = ""
+ , more = ""
+ , all = ""
+ , extra = "-Wreorder"
+ , everything = "-Wreorder"
+ , error = "-Werror"
}
local cu_cxx = config.get("cu-cxx")
- local cu_cxx_tool = nil tool.load("cxx")
+ local cu_cxx_tool = nil
if is_plat("windows") or not cu_cxx then
cu_cxx_tool = tool.load("cxx")
elseif cu_cxx then