Skip to content

Commit d8c4df5

Browse files
committed
Enable assertions in Release+Assert builds of earlyswiftsyntax
rdar://106874574
1 parent 9a6b16b commit d8c4df5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ message(STATUS "Module triple: ${SWIFT_MODULE_TRIPLE}")
6868
add_compile_definitions(
6969
$<$<COMPILE_LANGUAGE:Swift>:SWIFT_SYNTAX_ALWAYS_SINGLE_THREADED>
7070
)
71+
if (SWIFTSYNTAX_ENABLE_ASSERTIONS)
72+
add_compile_definitions(
73+
$<$<COMPILE_LANGUAGE:Swift>:SWIFTSYNTAX_ENABLE_ASSERTIONS>
74+
)
75+
endif()
7176

7277
add_subdirectory(Sources)
7378

0 commit comments

Comments
 (0)