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) }