Skip to content

Commit fbdd36c

Browse files
authored
Merge pull request #15319 from slavapestov/remove-disable-resilience
Remove build-script flag to disable resilience
2 parents da08909 + 694fcdd commit fbdd36c

17 files changed

+5
-69
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,6 @@ option(SWIFT_RUNTIME_ENABLE_LEAK_CHECKER
295295
"Should the runtime be built with support for non-thread-safe leak detecting entrypoints"
296296
FALSE)
297297

298-
option(SWIFT_STDLIB_ENABLE_RESILIENCE
299-
"Build the standard libraries and overlays with resilience enabled; see docs/LibraryEvolution.rst"
300-
FALSE)
301-
302298
option(SWIFT_STDLIB_USE_NONATOMIC_RC
303299
"Build the standard libraries and overlays with nonatomic reference count operations enabled"
304300
FALSE)

cmake/modules/SwiftSource.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ function(_compile_swift_files
232232
list(APPEND swift_flags "-Xfrontend" "-sil-verify-all")
233233
endif()
234234

235-
if(SWIFT_STDLIB_ENABLE_RESILIENCE AND SWIFTFILE_IS_STDLIB)
235+
# The standard library and overlays are always built with resilience.
236+
if(SWIFTFILE_IS_STDLIB)
236237
list(APPEND swift_flags "-Xfrontend" "-enable-resilience")
237238
endif()
238239

test/IRGen/big_types_corner_cases.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -I %S/Inputs/abi %s -emit-ir -enable-large-loadable-types | %FileCheck %s
22

3-
// UNSUPPORTED: resilient_stdlib
4-
53
// REQUIRES: CPU=x86_64
6-
74
// REQUIRES: OS=macosx
85

96
sil_stage canonical

test/IRGen/big_types_corner_cases.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -enable-large-loadable-types %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: optimized_stdlib
5-
// UNSUPPORTED: resilient_stdlib
65

76
public struct BigStruct {
87
var i0 : Int32 = 0

test/IRGen/big_types_corner_cases_as_library.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -enable-large-loadable-types %s -emit-ir -parse-as-library | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
2-
// UNSUPPORTED: resilient_stdlib
32

43
public struct BigStruct {
54
var i0 : Int32 = 0

test/IRGen/big_types_tests.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-swift-frontend -I %S/Inputs/abi %s -emit-ir -enable-large-loadable-types | %FileCheck %s
22

3-
// UNSUPPORTED: resilient_stdlib
4-
53
// REQUIRES: CPU=x86_64
6-
74
// REQUIRES: OS=macosx
85

96
sil_stage canonical

test/IRGen/objc_shared_imported_decl.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// RUN: %target-swift-frontend -primary-file %s -import-objc-header %S/Inputs/usr/include/NSOption.h -emit-ir | %FileCheck %s
22

3-
// UNSUPPORTED: resilient_stdlib
4-
53
// REQUIRES: objc_interop
4+
// XFAIL: *
65

76
import Swift
87

test/IRGen/open_boxed_existential.sil

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-runtime
22

3-
// XFAIL: resilient_stdlib
4-
53
import Swift
64

75
// CHECK-LABEL: define{{( protected)?}} swiftcc {{i[0-9]+}} @open_boxed_existential(%swift.error*)
@@ -15,13 +13,9 @@ entry(%b : $Error):
1513
// CHECK: [[OUT_WITNESS:%.*]] = getelementptr inbounds {{.*}} [[OUT]], i32 0, i32 2
1614
// CHECK: [[WITNESS:%.*]] = load {{.*}} [[OUT_WITNESS]]
1715
%o = open_existential_box %b : $Error to $*@opened("01234567-89AB-CDEF-0123-000000000000") Error
18-
// CHECK: [[CODE_ADDR:%.*]] = getelementptr {{.*}} [[WITNESS]], i32 2
19-
// CHECK: [[CODE:%.*]] = load {{.*}} [[CODE_ADDR]]
2016
%m = witness_method $@opened("01234567-89AB-CDEF-0123-000000000000") Error, #Error._code!getter.1, %o : $*@opened("01234567-89AB-CDEF-0123-000000000000") Error : $@convention(witness_method: Error) <Self: Error> (@in_guaranteed Self) -> Int
21-
// CHECK: [[CODE_FN:%.*]] = bitcast i8* [[CODE]] to [[INT:i[0-9]+]] (%swift.opaque*, %swift.type*, i8**)*
22-
// CHECK: [[RESULT:%.*]] = call swiftcc [[INT]] [[CODE_FN]](%swift.opaque* noalias nocapture swiftself [[ADDR]], %swift.type* [[TYPE]], i8** [[WITNESS]])
17+
// CHECK: [[RESULT:%.*]] = call swiftcc [[INT:i[0-9]+]] @"$Ss5ErrorP5_codeSivgTj"(%swift.opaque* noalias nocapture swiftself [[ADDR]], %swift.type* [[TYPE]], i8** [[WITNESS]])
2318
%c = apply %m<@opened("01234567-89AB-CDEF-0123-000000000000") Error>(%o) : $@convention(witness_method: Error) <Self: Error> (@in_guaranteed Self) -> Int
2419
// CHECK: ret [[INT]] [[RESULT]]
2520
return %c : $Int
2621
}
27-

test/IRGen/open_boxed_existential_resilience.sil

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/SILGen/opaque_values_silgen.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// REQUIRES: plus_one_runtime
2-
2+
// XFAIL: *
33
// RUN: %target-swift-frontend -enable-sil-opaque-values -emit-sorted-sil -Xllvm -sil-full-demangle -emit-silgen %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime
44

5-
// UNSUPPORTED: resilient_stdlib
6-
75
struct TrivialStruct {
86
var x: Int
97
}

test/SILGen/opaque_values_silgen_lib.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// REQUIRES: plus_one_runtime
22

33
// RUN: %target-swift-frontend -enable-sil-ownership -enable-sil-opaque-values -emit-sorted-sil -Xllvm -sil-full-demangle -parse-stdlib -parse-as-library -emit-silgen -module-name Swift %s | %FileCheck %s
4-
// UNSUPPORTED: resilient_stdlib
54

65
precedencegroup AssignmentPrecedence { assignment: true }
76

test/SILOptimizer/sil_combine_objc.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -sil-combine -verify-skip-unreachable-must-be-last | %FileCheck %s
22
// REQUIRES: objc_interop
33

4-
// FIXME: https://bugs.swift.org/browse/SR-2808
5-
// XFAIL: resilient_stdlib
6-
74
// See https://bugs.swift.org/browse/SR-5065, rdar://32511494
85
// XFAIL: *
96

test/lit.site.cfg.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ if "@SWIFT_AST_VERIFIER@" == "TRUE":
6767
if "@SWIFT_OPTIMIZED@" == "TRUE":
6868
config.available_features.add("optimized_stdlib")
6969

70-
if "@SWIFT_STDLIB_ENABLE_RESILIENCE@" == "TRUE":
71-
config.available_features.add("resilient_stdlib")
72-
7370
if "@SWIFT_STDLIB_USE_NONATOMIC_RC@" == "TRUE":
7471
config.available_features.add("nonatomic_rc")
7572

test/stdlib/TestData.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// RUN: %target-run %t/TestData
1616
// REQUIRES: executable_test
1717
// REQUIRES: objc_interop
18-
// UNSUPPORTED: resilient_stdlib
1918

2019
import Foundation
2120
import Dispatch

utils/build-presets.ini

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,14 +1172,6 @@ skip-test-tvos-host
11721172
skip-test-watchos-host
11731173

11741174

1175-
# Like the regular PR testing preset, but with resilience enabled
1176-
[preset: buildbot_all_platforms,tools=RA,stdlib=RA,resilience]
1177-
mixin-preset=buildbot_all_platforms,tools=RA,stdlib=RA
1178-
1179-
swift-stdlib-enable-resilience
1180-
1181-
1182-
11831175
#===------------------------------------------------------------------------===#
11841176
# Test watchOS on OS X builder
11851177
#===------------------------------------------------------------------------===#

utils/build-script-impl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ KNOWN_SETTINGS=(
7171
llvm-num-parallel-lto-link-jobs "" "The number of parallel link jobs to use when compiling llvm"
7272
swift-stdlib-build-type "Debug" "the CMake build variant for Swift"
7373
swift-stdlib-enable-assertions "1" "enable assertions in Swift"
74-
swift-stdlib-enable-resilience "1" "build the Swift stdlib and overlays with resilience enabled"
7574
swift-stdlib-use-nonatomic-rc "0" "build the Swift stdlib and overlays with nonatomic reference count operations enabled"
7675
lldb-build-type "Debug" "the CMake build variant for LLDB"
7776
lldb-build-with-xcode "1" "Use xcodebuild to build LLDB, instead of CMake"
@@ -2098,7 +2097,6 @@ for host in "${ALL_HOSTS[@]}"; do
20982097
-DSWIFT_ANALYZE_CODE_COVERAGE:STRING=$(toupper "${SWIFT_ANALYZE_CODE_COVERAGE}")
20992098
-DSWIFT_STDLIB_BUILD_TYPE:STRING="${SWIFT_STDLIB_BUILD_TYPE}"
21002099
-DSWIFT_STDLIB_ASSERTIONS:BOOL=$(true_false "${SWIFT_STDLIB_ENABLE_ASSERTIONS}")
2101-
-DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=$(true_false "${SWIFT_STDLIB_ENABLE_RESILIENCE}")
21022100
-DSWIFT_STDLIB_USE_NONATOMIC_RC:BOOL=$(true_false "${SWIFT_STDLIB_USE_NONATOMIC_RC}")
21032101
-DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS:BOOL=$(true_false "${SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS}")
21042102
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING="${native_llvm_tools_path}"

validation-test/lit.site.cfg.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ if "@SWIFT_OPTIMIZED@" == "TRUE":
6868
if "@SWIFT_ENABLE_SOURCEKIT_TESTS@" == "TRUE":
6969
config.available_features.add('sourcekit')
7070

71-
if "@SWIFT_STDLIB_ENABLE_RESILIENCE@" == "TRUE":
72-
config.available_features.add("resilient_stdlib")
73-
7471
if "@SWIFT_STDLIB_USE_NONATOMIC_RC@" == "TRUE":
7572
config.available_features.add("nonatomic_rc")
7673

0 commit comments

Comments
 (0)