Skip to content

Commit 9d9fb85

Browse files
Merge pull request #25090 from aschwaighofer/test_optimize_with_implicit_dynamic
Add optimize_with_implicit_dynamic check option
2 parents 6171d68 + 38fbbf2 commit 9d9fb85

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
@@ -514,7 +514,15 @@ elif swift_test_mode == 'optimize_none_with_implicit_dynamic':
514514
# Add the cpu as a feature so we can selectively disable tests in an
515515
# optimize mode for a cpu.
516516
config.available_features.add("swift_test_mode_optimize_none_" + run_cpu)
517-
swift_execution_tests_extra_flags = '-Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining -swift-version 5'
517+
swift_execution_tests_extra_flags = '-Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining'
518+
elif swift_test_mode == 'optimize_with_implicit_dynamic':
519+
config.available_features.add("executable_test")
520+
config.limit_to_features.add("executable_test")
521+
config.available_features.add("swift_test_mode_optimize_with_implicit_dynamic")
522+
# Add the cpu as a feature so we can selectively disable tests in an
523+
# optimize mode for a cpu.
524+
config.available_features.add("swift_test_mode_optimize_" + run_cpu)
525+
swift_execution_tests_extra_flags = '-O -Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining'
518526
elif swift_test_mode == 'optimize':
519527
config.available_features.add("executable_test")
520528
config.limit_to_features.add("executable_test")

0 commit comments

Comments
 (0)