diff options
| -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 |
