Skip to content

Commit 8fdde3e

Browse files
authored
Merge pull request #64572 from ahoppen/ahoppen/swiftsyntax-assertions
[SwiftSyntax] Add CMake argument to enable assertions in SwiftSyntax for Release+Assert builds
2 parents 21701ac + d38bd10 commit 8fdde3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def build(self, host_target):
5454
self.generate_toolchain_file_for_darwin_or_linux(host_target)
5555

5656
self.cmake_options.define('CMAKE_INSTALL_PREFIX:PATH', self.args.install_prefix)
57+
self.cmake_options.define('SWIFTSYNTAX_ENABLE_ASSERTIONS:BOOL',
58+
self.args.assertions)
5759
self.build_with_cmake(["all"], self.args.swift_build_variant, [])
5860

5961
def should_test(self, host_target):

0 commit comments

Comments
 (0)