summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-05-20 19:56:33 +0800
committerOpportunityLiu <[email protected]>2019-05-21 09:54:00 +0800
commita4dfd8fd27eed47d760c78db4672fd50d0f2fbac (patch)
treea109c89583360aca59bab12d02d14046a915b0f4 /xmake
parent5a9914c5de7ee2ef65e3011c9e6ff73714de51e6 (diff)
nvcc warning map
Diffstat (limited to 'xmake')
-rw-r--r--xmake/modules/core/tools/nvcc.lua7
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