summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorxq114 <[email protected]>2023-02-07 14:27:37 +0800
committerxq114 <[email protected]>2023-02-07 14:27:37 +0800
commit38b29fd6ad864db1fb59669f6eb02d5c52242696 (patch)
treebf28ad45862adef0d0162ca3a5ef68a4dc66093b /xmake/modules/core/tools/nvcc.lua
parent5450f385d7436ed52c7bba5873e4224b0bbf46cb (diff)
add c++20 standard for nvcc
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 ade7fc936..17ee920c7 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -184,7 +184,8 @@ function nf_language(self, stdname)
, cxx11 = "--std c++11"
, cxx14 = "--std c++14"
, cxx17 = "--std c++17"
- , cxxlatest = {"--std c++17", "--std c++14", "--std c++11", "--std c++03"}
+ , cxx20 = "--std c++20"
+ , cxxlatest = {"--std c++20", "--std c++17", "--std c++14", "--std c++11", "--std c++03"}
}
local cxxmaps2 = {}
for k, v in pairs(_g.cxxmaps) do