Skip to content

Commit

Permalink
Merge pull request swiftlang#64572 from ahoppen/ahoppen/swiftsyntax-a…
Browse files Browse the repository at this point in the history
…ssertions

[SwiftSyntax] Add CMake argument to enable assertions in SwiftSyntax for Release+Assert builds
  • Loading branch information
ahoppen committed Mar 24, 2023
2 parents 21701ac + d38bd10 commit 8fdde3e
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 8fdde3e

Please sign in to comment.