Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around SR-11680 (OpenCombine#145)
The Swift bug report: https://bugs.swift.org/browse/SR-11680 Swift nightly toolchains are available here: https://swift.org/download/ The Swift nightly toolchains cannot build OpenCombine. Here's why: The COpenCombineHelpers target defines a non-static function (`opencombine_stop_in_debugger`) in a header file. This function is emitted in the target's IR, but not in the target's TBD. Swift nightly toolchains have assertions enabled, so they use the -validate-tbd-against-ir=missing build setting. This build setting makes the compiler fail if the TBD doesn't match the IR. This commit un-inlines `opencombine_stop_in_debugger`, so it is not emitted in the IR. This stops the TBD validator from complaining.
- Loading branch information