summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-28 22:42:47 +0800
committerruki <[email protected]>2020-10-28 22:42:47 +0800
commit2aa699bb2c0e7e031ea7cfe98b0e60ff9eae073b (patch)
treebc81d5bea9d8a4632a567a6825b7b8c604768d25 /xmake/modules/core/tools/nvcc.lua
parent3b74bb00d24587b4768ac10c9ef4222f01ae9225 (diff)
add global build_warning option
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 3b340b9cb..d5a7ef6d2 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -20,6 +20,7 @@
-- imports
import("core.base.option")
+import("core.base.global")
import("core.project.config")
import("core.project.project")
import("core.platform.platform")
@@ -354,7 +355,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then
+ if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning") or global.get("build_warning")) then
if progress.showing_without_scroll() then
print("")
end