mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests using a mock SDK can't load the stdlib of the normal SDK (or the just-built one) with the recent changes. Use `-parse-stdlib` in those tests to prevent loading the stdlib implicitly.
6 lines
319 B
Swift
6 lines
319 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - -parse-stdlib \
|
|
// RUN: -sdk /SWIFT_SYSROOT/MacOSX.sdk | %FileCheck %s
|
|
// Test that sysroot and SDK are stored in the debug info.
|
|
// CHECK: distinct !DICompileUnit({{.*}}sysroot: "/SWIFT_SYSROOT/MacOSX.sdk",
|
|
// LLDB-SAME: sdk: "MacOSX.sdk"
|