Skip to content

Commit

Permalink
[SwiftSyntax] Add CMake argument to enable assertions in SwiftSyntax …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ahoppen committed Mar 23, 2023
1 parent 837af34 commit d38bd10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def build(self, host_target):
self.generate_toolchain_file_for_darwin_or_linux(host_target)

self.cmake_options.define('CMAKE_INSTALL_PREFIX:PATH', self.args.install_prefix)
self.cmake_options.define('SWIFTSYNTAX_ENABLE_ASSERTIONS:BOOL',
self.args.assertions)
self.build_with_cmake(["all"], self.args.swift_build_variant, [])

def should_test(self, host_target):
Expand Down

0 comments on commit d38bd10

Please sign in to comment.