summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-08 11:23:13 +0800
committerGitHub <[email protected]>2025-12-08 11:23:13 +0800
commitfb2a2e502892b24efba5b7ebf662e784966db5ee (patch)
tree412ec75f362a50c32a1c6e984ae038df418069be
parentc5ca6a600f87ca54ce8361638c7f49b682fa57ff (diff)
parent0c9d7b06bb294b3f3cbe7d37c53810f5e8d9a08d (diff)
Merge pull request #7106 from Bush2021/c++23preview
add `/std:c++23preview` support for cl
-rw-r--r--xmake/modules/core/tools/cl.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 46ecc9b2b..240189e4c 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -281,10 +281,10 @@ function nf_language(self, stdname)
, gnuxx20 = {"-std:c++20", "-std:c++latest"}
, cxx2a = {"-std:c++20", "-std:c++latest"}
, gnuxx2a = {"-std:c++20", "-std:c++latest"}
- , cxx23 = {"-std:c++23", "-std:c++latest"}
- , gnuxx23 = {"-std:c++23", "-std:c++latest"}
- , cxx2b = {"-std:c++23", "-std:c++latest"}
- , gnuxx2b = {"-std:c++23", "-std:c++latest"}
+ , cxx23 = {"-std:c++23", "-std:c++23preview", "-std:c++latest"}
+ , gnuxx23 = {"-std:c++23", "-std:c++23preview", "-std:c++latest"}
+ , cxx2b = {"-std:c++23", "-std:c++23preview", "-std:c++latest"}
+ , gnuxx2b = {"-std:c++23", "-std:c++23preview", "-std:c++latest"}
, cxx26 = {"-std:c++26", "-std:c++latest"}
, gnuxx26 = {"-std:c++26", "-std:c++latest"}
, cxxlatest = "-std:c++latest"