summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-05-21 18:40:38 +0800
committerOpportunityLiu <[email protected]>2019-05-21 18:40:38 +0800
commit82277e5222154ff4463127681f2d18abb07d7f4a (patch)
treef9f3858ed2cdb888c1e3e656d306cc75850ccdc4 /xmake/modules/core/tools/nvcc.lua
parentf7252184c07d7708e9270a51523e46957e054f1c (diff)
add flag mapping
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 560145fde..b830e2c65 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -40,10 +40,9 @@ function init(self)
self:set("mapflags",
{
-- warnings
- ["-W1"] = ""
- , ["-W2"] = ""
- , ["-W3"] = ""
- , ["-W4"] = "-Wreorder"
+ ["-W4"] = "-Wreorder"
+ , ["-Wextra"] = "-Wreorder"
+ , ["-Weverything"] = "-Wreorder"
})
-- init buildmodes