Does the shipping stdlib build with enable_assertions?

Hi,

I'd Ike to know if the shipping stdlib is built with INTERNAL_CHECKS_ENABLED?

Thanks!

  • _internalInvariant will execute when standard library code is built with assertions enabled. Use this for internal only invariant checks that useful for debugging the standard library itself.

if(enable_assertions)
    list(APPEND result "-D" "INTERNAL_CHECKS_ENABLED")
  endif()

SwiftSource.cmake

Terms of Service

Privacy Policy

Cookie Policy