Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52202abb53 |
@@ -134,6 +134,14 @@ func compileMSVC(cfg dsl.BuildConfig, tc Toolchain, outputPath string) []string
|
|||||||
argv := []string{tc.Binary, "/nologo"}
|
argv := []string{tc.Binary, "/nologo"}
|
||||||
|
|
||||||
if cfg.Standard != "" {
|
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)
|
argv = append(argv, "/std:"+cfg.Standard)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user