summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorMorgan Caron <[email protected]>2022-08-20 17:34:54 +0200
committerMorgan Caron <[email protected]>2022-08-20 19:21:57 +0200
commit278f37f3aa0c45c669dc96d10053bc855e1febdc (patch)
tree628384eb1a153bd967e9ca83b394185b13ff8bc0 /xmake/modules/core/tools/gcc.lua
parentdb90d109c6ccf2545e8a3ae186ddfea1c99be61f (diff)
Adding C++2b support
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 3906e5c48..4122c8ae8 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -209,10 +209,12 @@ function nf_language(self, stdname)
, gnuxx20 = {"-std=gnu++20", "-std=c++2a"}
, cxx2a = "-std=c++2a"
, gnuxx2a = "-std=gnu++2a"
- , cxx23 = "-std=c++23"
- , gnuxx23 = "-std=gnu++23"
- , cxxlatest = {"-std=c++23", "-std=c++20", "-std=c++2a", "-std=c++17", "-std=c++14", "-std=c++11", "-std=c++1z", "-std=c++98"}
- , gnuxxlatest = {"-std=gnu++23", "-std=gnu++20", "-std=gnu++2a", "-std=gnu++17", "-std=gnu++14", "-std=gnu++11", "-std=c++1z", "-std=gnu++98"}
+ , cxx23 = {"-std=c++23", "-std=c++2b"}
+ , gnuxx23 = {"-std=gnu++23", "-std=c++2b"}
+ , cxx2b = "-std=c++2b"
+ , gnuxx2b = "-std=gnu++2b"
+ , cxxlatest = {"-std=c++23", "-std=c++2b", "-std=c++20", "-std=c++2a", "-std=c++17", "-std=c++14", "-std=c++11", "-std=c++1z", "-std=c++98"}
+ , gnuxxlatest = {"-std=gnu++23", "-std=gnu++2b", "-std=gnu++20", "-std=gnu++2a", "-std=gnu++17", "-std=gnu++14", "-std=gnu++11", "-std=c++1z", "-std=gnu++98"}
}
local cxxmaps2 = {}
for k, v in pairs(_g.cxxmaps) do
@@ -704,4 +706,3 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
}
}
end
-