From 9ef48cab2e2ea42faa115ea2c472a70f2095d6b5 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Mon, 20 May 2019 19:56:33 +0800 Subject: nvcc warning map --- xmake/modules/core/tools/nvcc.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'xmake/modules/core/tools/nvcc.lua') 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 -- cgit v1.3.1