diff options
| author | ruki <[email protected]> | 2019-08-22 00:36:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-21 21:41:47 +0800 |
| commit | 3e3541b38ed974217159037c2410ba701c0fcaf6 (patch) | |
| tree | 0a1c26f7fe2e4e20d0d88bc8b40e61914123e69b | |
| parent | 357c30154201ed11f4ad86b6be7e3590fc36d17e (diff) | |
improve std language again
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 07f492288..3fbae583b 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -198,6 +198,8 @@ function nf_language(self, stdname) , gnuxx17 = "-std:c++17" , cxx1z = "-std:c++17" , gnuxx1z = "-std:c++17" + , cxx20 = "-std=c++latest" + , gnuxx20 = "-std=c++latest" , cxx2a = "-std=c++latest" , gnuxx2a = "-std=c++latest" } diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 036b3f709..9b96daf91 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -200,6 +200,8 @@ function nf_language(self, stdname) , gnuxx17 = "-std=gnu++17" , cxx1z = "-std=c++1z" , gnuxx1z = "-std=gnu++1z" + , cxx20 = "-std=c++2a" + , gnuxx20 = "-std=gnu++2a" , cxx2a = "-std=c++2a" , gnuxx2a = "-std=gnu++2a" } |
