mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This an intermediate step for PR44213 (https://bugs.llvm.org/show_bug.cgi?id=44213). This stores the SDK *name* in the debug info, to make it possible to `-fdebug-prefix-map`-replace the sysroot with a recognizable string and allowing the debugger to find a fitting SDK relative to itself, not the machine the executable was compiled on. rdar://problem/51645582
6 lines
305 B
Swift
6 lines
305 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
|
|
// 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"
|