From a4dfd8fd27eed47d760c78db4672fd50d0f2fbac 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xmake') diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index b282ab8ce..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") @@ -73,13 +73,16 @@ function nf_warning(self, level) local maps = { 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