From 52202abb53923f1930258777af5ff8a0682f82b1 Mon Sep 17 00:00:00 2001 From: Mikhail Kornilovich Date: Wed, 15 Apr 2026 11:02:05 +0300 Subject: [PATCH] fix compile standard for msvc --- runner/compiler.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runner/compiler.go b/runner/compiler.go index 4b10031..e4b2b29 100644 --- a/runner/compiler.go +++ b/runner/compiler.go @@ -134,6 +134,14 @@ func compileMSVC(cfg dsl.BuildConfig, tc Toolchain, outputPath string) []string argv := []string{tc.Binary, "/nologo"} if cfg.Standard != "" { + switch cfg.Standard { + case "c11": + cfg.Standard = "c17" + case "c23": + cfg.Standard = "clatest" + case "c++23": + cfg.Standard = "c++23preview" + } argv = append(argv, "/std:"+cfg.Standard) }