Skip to content

Commit

Permalink
Enable assertions in Release+Assert builds of earlyswiftsyntax
Browse files Browse the repository at this point in the history
rdar://106874574
  • Loading branch information
ahoppen committed Mar 23, 2023
1 parent 9a6b16b commit d8c4df5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ message(STATUS "Module triple: ${SWIFT_MODULE_TRIPLE}")
add_compile_definitions(
$<$<COMPILE_LANGUAGE:Swift>:SWIFT_SYNTAX_ALWAYS_SINGLE_THREADED>
)
if (SWIFTSYNTAX_ENABLE_ASSERTIONS)
add_compile_definitions(
$<$<COMPILE_LANGUAGE:Swift>:SWIFTSYNTAX_ENABLE_ASSERTIONS>
)
endif()

add_subdirectory(Sources)

Expand Down

0 comments on commit d8c4df5

Please sign in to comment.