diff options
| author | ruki <[email protected]> | 2021-09-26 22:50:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-26 22:50:17 +0800 |
| commit | 57222b35a8c1ba36d5487345e4fb16b40d07fd0e (patch) | |
| tree | 31a0a2b195e973914912919f5dc9c5da3e1621a0 /xmake/modules/core/tools/gcc.lua | |
| parent | 38ad0e37b05036a5bce2731e921b86eac846cb1b (diff) | |
add c++latest
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 952f89dff..bb0bef168 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -180,6 +180,8 @@ function nf_language(self, stdname) , gnu11 = "-std=gnu11" , c17 = "-std=c17" , gnu17 = "-std=gnu17" + , clatest = "-std=c17" + , gnulatest = "-std=gnu17" } end @@ -197,10 +199,12 @@ 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" + , cxx20 = "-std=c++20" + , gnuxx20 = "-std=gnu++20" , cxx2a = "-std=c++2a" , gnuxx2a = "-std=gnu++2a" + , cxxlatest = "-std=c++2a" + , gnuxxlatest = "-std=gnu++2a" } local cxxmaps2 = {} for k, v in pairs(_g.cxxmaps) do |
