File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,9 @@ def disable_objc_attr_requires_foundation_module :
174174 HelpText<"Disable requiring uses of @objc to require importing the "
175175 "Foundation module">;
176176
177+ def enable_resilience : Flag<["-"], "enable-resilience">,
178+ HelpText<"Deprecated, use -enable-library-evolution instead">;
179+
177180}
178181
179182
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ bool ArgsToFrontendOptionsConverter::convert(
7272 Opts.EnableTesting |= Args.hasArg (OPT_enable_testing);
7373 Opts.EnablePrivateImports |= Args.hasArg (OPT_enable_private_imports);
7474 Opts.EnableLibraryEvolution |= Args.hasArg (OPT_enable_library_evolution);
75+
76+ // FIXME: Remove this flag
77+ Opts.EnableLibraryEvolution |= Args.hasArg (OPT_enable_resilience);
78+
7579 Opts.EnableImplicitDynamic |= Args.hasArg (OPT_enable_implicit_dynamic);
7680
7781 Opts.TrackSystemDeps |= Args.hasArg (OPT_track_system_dependencies);
Original file line number Diff line number Diff line change 11// RUN: %empty-directory(%t)
22
3- // This test checks that we serialize the -enable-library-evolution and -sil-serialize-all
4- // flags correctly .
3+ // This test checks that we serialize the -enable-library-evolution
4+ // flag .
55
66// RUN: %target-swift-frontend -emit-module -o %t %s
77// RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience.dump.txt
1010// RUN: %target-swift-frontend -emit-module -o %t -enable-library-evolution %s
1111// RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience2.dump.txt
1212// RUN: %FileCheck -check-prefix=CHECK -check-prefix=RESILIENCE %s < %t/resilience2.dump.txt
13+ // RUN: %FileCheck -check-prefix=NEGATIVE %s < %t/resilience2.dump.txt
1314
14- // RUN: %target-swift-frontend -emit-module -o %t %s
15- // RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience3.dump.txt
16- // RUN: %FileCheck -check-prefix=CHECK -check-prefix=FRAGILE %s < %t/resilience3.dump.txt
15+ // FIXME: The alternate -enable-resilience flag is going away soon.
1716
17+ // RUN: %target-swift-frontend -emit-module -o %t -enable-resilience %s
18+ // RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience2.dump.txt
19+ // RUN: %FileCheck -check-prefix=CHECK -check-prefix=RESILIENCE %s < %t/resilience2.dump.txt
1820// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t/resilience2.dump.txt
1921
2022// CHECK: <MODULE_BLOCK {{.*}}>
You can’t perform that action at this time.
0 commit comments