Driver: Pass -disable-upcoming-feature and -disable-experimental-feature to the frontend.

The legacy driver is still used to build the compiler on Windows, so we need it
to handle these new flags correctly in order to adopt them in the stdlib.
This commit is contained in:
Allan Shortlidge
2024-11-18 09:02:08 -08:00
parent 004ef749be
commit b0b7166d1e
2 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
// RUN: %swiftc_driver -emit-executable -o %t.exe %s \
// RUN: -enable-upcoming-feature MemberImportVisibility \
// RUN: -enable-experimental-feature ParserValidation \
// RUN: -disable-upcoming-feature MemberImportVisibility \
// RUN: -disable-experimental-feature ParserValidation \
// RUN: -disallow-use-new-driver -driver-print-jobs 2>&1 | %FileCheck %s
// The new driver has its own test for this
// REQUIRES: cplusplus_driver
// REQUIRES: swift_feature_ParserValidation
// REQUIRES: swift_feature_MemberImportVisibility
// CHECK: {{.*}}swift{{c|-frontend}}{{(.exe)?"?}} -frontend
// CHECK-SAME: -enable-upcoming-feature MemberImportVisibility
// CHECK-SAME: -enable-experimental-feature ParserValidation
// CHECK-SAME: -disable-upcoming-feature MemberImportVisibility
// CHECK-SAME: -disable-experimental-feature ParserValidation