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 :
174
174
HelpText<"Disable requiring uses of @objc to require importing the "
175
175
"Foundation module">;
176
176
177
+ def enable_resilience : Flag<["-"], "enable-resilience">,
178
+ HelpText<"Deprecated, use -enable-library-evolution instead">;
179
+
177
180
}
178
181
179
182
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ bool ArgsToFrontendOptionsConverter::convert(
72
72
Opts.EnableTesting |= Args.hasArg (OPT_enable_testing);
73
73
Opts.EnablePrivateImports |= Args.hasArg (OPT_enable_private_imports);
74
74
Opts.EnableLibraryEvolution |= Args.hasArg (OPT_enable_library_evolution);
75
+
76
+ // FIXME: Remove this flag
77
+ Opts.EnableLibraryEvolution |= Args.hasArg (OPT_enable_resilience);
78
+
75
79
Opts.EnableImplicitDynamic |= Args.hasArg (OPT_enable_implicit_dynamic);
76
80
77
81
Opts.TrackSystemDeps |= Args.hasArg (OPT_track_system_dependencies);
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
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 .
5
5
6
6
// RUN: %target-swift-frontend -emit-module -o %t %s
7
7
// RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience.dump.txt
10
10
// RUN: %target-swift-frontend -emit-module -o %t -enable-library-evolution %s
11
11
// RUN: llvm-bcanalyzer -dump %t/resilience.swiftmodule > %t/resilience2.dump.txt
12
12
// RUN: %FileCheck -check-prefix=CHECK -check-prefix=RESILIENCE %s < %t/resilience2.dump.txt
13
+ // RUN: %FileCheck -check-prefix=NEGATIVE %s < %t/resilience2.dump.txt
13
14
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.
17
16
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
18
20
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t/resilience2.dump.txt
19
21
20
22
// CHECK: <MODULE_BLOCK {{.*}}>
You can’t perform that action at this time.
0 commit comments