Skip to content

Commit 7c33f22

Browse files
Merge pull request #25094 from aschwaighofer/test_optimize_with_implicit_dynamic-5.1
[5.1] Add optimize_with_implicit_dynamic check option
2 parents 67237ae + fbd39d6 commit 7c33f22

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ set(profdata_merge_worker
136136
set(TEST_MODES
137137
optimize_none optimize optimize_unchecked optimize_size
138138
optimize_none_with_implicit_dynamic
139+
optimize_with_implicit_dynamic
139140
only_executable only_non_executable
140141
)
141142
set(TEST_SUBSETS

test/IRGen/report_dead_method_call.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// REQUIRES: executable_test
1313

1414
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
15+
// UNSUPPORTED: swift_test_mode_optimize_with_implicit_dynamic
1516

1617
private protocol PrivateProto {
1718
func abc()

test/ParseableInterface/inherited-defaults-execution.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// REQUIRES: executable_test
22
// RUN: %empty-directory(%t)
33

4+
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
5+
// UNSUPPORTED: swift_test_mode_optimize_with_implicit_dynamic
6+
47
// 1) Build the 'Inherited' library and its interface from this file
58
//
69
// RUN: %target-build-swift-dylib(%t/%target-library-name(Inherited)) -emit-module-path %t/Inherited.swiftmodule -emit-parseable-module-interface-path %t/Inherited.swiftinterface -module-name Inherited %s

test/lit.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,15 @@ elif swift_test_mode == 'optimize_none_with_implicit_dynamic':
500500
# Add the cpu as a feature so we can selectively disable tests in an
501501
# optimize mode for a cpu.
502502
config.available_features.add("swift_test_mode_optimize_none_" + run_cpu)
503-
swift_execution_tests_extra_flags = '-Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining -swift-version 5'
503+
swift_execution_tests_extra_flags = '-Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining'
504+
elif swift_test_mode == 'optimize_with_implicit_dynamic':
505+
config.available_features.add("executable_test")
506+
config.limit_to_features.add("executable_test")
507+
config.available_features.add("swift_test_mode_optimize_with_implicit_dynamic")
508+
# Add the cpu as a feature so we can selectively disable tests in an
509+
# optimize mode for a cpu.
510+
config.available_features.add("swift_test_mode_optimize_" + run_cpu)
511+
swift_execution_tests_extra_flags = '-O -Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining'
504512
elif swift_test_mode == 'optimize':
505513
config.available_features.add("executable_test")
506514
config.limit_to_features.add("executable_test")

0 commit comments

Comments
 (0)