mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Instead of doing the sanity checks by default (with an assert-build of the stdlib), only do the checks if the environment variable SWIFT_DEBUG_ENABLE_COW_SANITY_CHECKS is set to true. The checks can give false alarms in case a binary is built against a no-assert stdlib but run with an assert-stdlib. Therefore only do the checks if it's explicitly enabled at runtime. rdar://problem/65475776
6.7 KiB
6.7 KiB