Files
swift-mirror/test/DebugInfo/cxx_interop.swift
Augusto Noronha dbaf5e53f0 Emit cxx interop into DW_AT_APPLE_flags
When compiling with interop enabled, emit the C++ interop compiler flag
into the DW_AT_APPLE_flags, to make it so LLDB can accurately match the
C++ interop mode when initializing its compiler instance.

rdar://97610458
(cherry picked from commit b1dbb0a321)
2023-04-11 10:40:09 -07:00

6 lines
281 B
Swift

// Check that the "-enable-experimental-cxx-interop" is stored as a flag in the
// Compile Unit.
// RUN: %target-swift-frontend -emit-ir -enable-experimental-cxx-interop -g %s -o - | %FileCheck %s
// CHECK: !DICompileUnit({{.*}}flags: "-enable-experimental-cxx-interop"