From 7ccd8a389ebec7f2d2cd4f2637d57c3047614792 Mon Sep 17 00:00:00 2001 From: xihale Date: Sat, 31 May 2025 21:38:21 +0800 Subject: fix: compile with C++latest for cppfront generated cpp files --- xmake/rules/cppfront/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/cppfront/xmake.lua') diff --git a/xmake/rules/cppfront/xmake.lua b/xmake/rules/cppfront/xmake.lua index bc45d90f3..f829b671f 100644 --- a/xmake/rules/cppfront/xmake.lua +++ b/xmake/rules/cppfront/xmake.lua @@ -87,7 +87,7 @@ rule("cppfront.build.cpp2") batchcmds:show_progress(opt.progress, "${color.build.object}compiling.cpp2 %s", sourcefile_cpp2) batchcmds:mkdir(basedir) batchcmds:vrunv(cppfront.program, argv) - batchcmds:compile(sourcefile_cpp, objectfile, {configs = {languages = "c++26"}}) + batchcmds:compile(sourcefile_cpp, objectfile, {configs = {languages = "c++latest"}}) -- add deps batchcmds:add_depfiles(sourcefile_cpp2) -- cgit v1.3.1