Uploaded image for project: 'Swift'
  1. Swift
  2. SR-11918

Reject the combination of -enable-testing and -enable-library-evolution

    XMLWordPrintable

    Details

      Description

      We know that testability and library evolution have serious compatibility issues. In particular, @testable import of modules with library evolution can cause the compiler to inline code that was optimized with one resilience expansion into a context that requires a different resilience expansion. Rather than waiting for users to encounter bizarre compiler or even runtime crashes when building tests, we should emit a warning or error when the library itself is compiled with both -enable-testing and -enable-library-evolution.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            beccadax Becca Royal-Gordon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: