Make debug builds faster by using SWIFT_COMPILATION_MODE = singlefile for debug builds. Also: add flags to warn about long type checking.

This commit is contained in:
Brent Simmons committed 2026-01-21 09:22:45 -08:00
1 parent 088e057b18
commit f86d52d0ce
1 file changed
+2 -1
+2 -1
View File
@@ -15,6 +15,7 @@ GCC_OPTIMIZATION_LEVEL = 0
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 SKIP_APP_GROUP_ACCESS=1 $(inherited)
MTL_ENABLE_DEBUG_INFO = YES
ONLY_ACTIVE_ARCH = YES
OTHER_SWIFT_FLAGS = -DDEBUG -DSKIP_APP_GROUP_ACCESS
OTHER_SWIFT_FLAGS = -DDEBUG -DSKIP_APP_GROUP_ACCESS -Xfrontend -warn-long-function-bodies=300 -Xfrontend -warn-long-expression-type-checking=300
SWIFT_COMPILATION_MODE = singlefile
SWIFT_OPTIMIZATION_LEVEL = -Onone
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG SKIP_APP_GROUP_ACCESS