Skip to content

Commit 2921425

Browse files
committed
Reinstate "Compile StdlibUnittest with -sil-serialize-all.""
This reinstates commit 79517a8. Let's try again. All blocking problems should be resolved now. Compiling StdlibUnittest with -sil-serialize-all gives a much higher test coverage because we can inline and optimize unittest code togeter with the test file. It already helped to uncover some compiler bugs which we wouldn't have found without this change. On the downside, a test-run in optimized mode takes considerable longer than before, because some tests need much longer to compile.
1 parent b6b5f8b commit 2921425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/private/StdlibUnittest/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ add_swift_library(swiftStdlibUnittest SHARED IS_STDLIB
4848

4949
PRIVATE_LINK_LIBRARIES ${swift_stdlib_unittest_private_link_libraries}
5050
SWIFT_MODULE_DEPENDS ${swift_stdlib_unittest_module_depends}
51+
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
5152
FRAMEWORK_DEPENDS ${swift_stdlib_unittest_framework_depends}
5253
INSTALL_IN_COMPONENT stdlib-experimental)
5354

0 commit comments

Comments
 (0)