[CMake] Add option to perform SwiftParser validation by default

Disabled by default. We'll enable it for some build presets.

rdar://121545713
This commit is contained in:
Rintaro Ishizaki
2024-01-25 15:53:23 -08:00
parent 991a6de207
commit 810a94cd0f
9 changed files with 33 additions and 2 deletions

View File

@@ -1398,7 +1398,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
}
}
#ifndef NDEBUG
#if SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
/// Enable round trip parsing via the new swift parser unless it is disabled
/// explicitly. The new Swift parser can have mismatches with C++ parser -
/// rdar://118013482 Use this flag to disable round trip through the new