Files
swift-mirror/test/DebugInfo/compileunit-sysroot-sdk.swift
Alexis Laferrière bccea96fcc [Test] Use -parse-stdlib to avoid loading an incompatible stdlib
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.
2021-09-13 16:44:16 -07:00

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"