diff options
| author | OpportunityLiu <[email protected]> | 2019-05-20 19:56:33 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-05-21 09:54:00 +0800 |
| commit | a4dfd8fd27eed47d760c78db4672fd50d0f2fbac (patch) | |
| tree | a109c89583360aca59bab12d02d14046a915b0f4 /xmake/modules | |
| parent | 5a9914c5de7ee2ef65e3011c9e6ff73714de51e6 (diff) | |
nvcc warning map
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
