diff options
| author | ruki <[email protected]> | 2023-02-07 15:21:41 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-07 15:21:41 +0800 |
| commit | 4a691288bf2383f204a8ece438d29bcc7b0c6670 (patch) | |
| tree | bf28ad45862adef0d0162ca3a5ef68a4dc66093b | |
| parent | 5450f385d7436ed52c7bba5873e4224b0bbf46cb (diff) | |
| parent | 38b29fd6ad864db1fb59669f6eb02d5c52242696 (diff) | |
Merge pull request #3340 from xq114/dev
add c++20 standard for nvcc
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 3 |
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 |
