mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swift currently checks if an imported module has a deployment target compatible with what’s currently being compiled. For a resilient module, though, you really want to know the /oldest/ deployment target the library supports, not the one it was most recently compiled with, and we don’t currently save that information. Disable this check for now when the module is resilient. (Why not do this on the serialization side? Because the deployment target you compile with is still relevant when trying to match the compilation environment as closely as possible, which LLDB tries to do. It's also just useful information for debugging the compiler.) rdar://problem/42903218
8 lines
373 B
Swift
8 lines
373 B
Swift
// RUN: not %swift-ide-test -source-filename %s -print-module -module-to-print Swift -target x86_64-unknown-solaris
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t -module-name Dummy -target x86_64-apple-macosx10.99 %s
|
|
// RUN: not %target-swift-ide-test -source-filename %s -print-module -module-to-print Dummy -I %t
|
|
|
|
// REQUIRES: OS=macosx
|