Skip to content

Commit 1a3a809

Browse files
committed
[SwiftSyntax] Add CMake argument to enable assertions in SwiftSyntax for Release+Assert builds
This does not do anything by itself, it needs a corresponding change in swift-syntax to pick up the CMake option and actually enable assertions.
1 parent 837af34 commit 1a3a809

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ 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', self.args.assertions)
5758
self.build_with_cmake(["all"], self.args.swift_build_variant, [])
5859

5960
def should_test(self, host_target):

0 commit comments

Comments
 (0)