Files
swift-mirror/test/Driver/debug_anonymous_context_metadata.swift
Erik Eckstein 321d340331 Driver: Don't imply -enable-anonymous-context-mangled-names with optimizations enabled, even if -g is used.
The option -enable-anonymous-context-mangled-names prevents stripping of dead metadata to improve debuggability.
But with optimizations enabled, we do a lot of dead code stripping which affects debuggability anyway.

rdar://problem/48123944
2019-07-17 12:10:16 +02:00

11 lines
563 B
Swift

// RUN: %target-swiftc_driver -### -g %s 2>&1 | %FileCheck %s
// RUN: %target-swiftc_driver -### -g -Onone %s 2>&1 | %FileCheck -check-prefix=CHECK-ONONE %s
// RUN: %target-swiftc_driver -### -g -O %s 2>&1 | %FileCheck -check-prefix=CHECK-O %s
// RUN: %target-swiftc_driver -### -g -Osize %s 2>&1 | %FileCheck -check-prefix=CHECK-OSIZE %s
// CHECK: -enable-anonymous-context-mangled-names
// CHECK-ONONE: -enable-anonymous-context-mangled-names
// CHECK-O-NOT: -enable-anonymous-context-mangled-names
// CHECK-OSIZE-NOT: -enable-anonymous-context-mangled-names