Skip to content

Commit cf3c83f

Browse files
authored
Merge pull request #242 from owenv/debug-info-store-invocation
Fix -debug-info-store-invocation logic on Darwin
2 parents ea06145 + 262419f commit cf3c83f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftDriver/Jobs/CompileJob.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ extension Driver {
199199
}
200200
}
201201

202-
if parsedOptions.contains(.debugInfoStoreInvocation) &&
202+
if parsedOptions.contains(.debugInfoStoreInvocation) ||
203203
toolchain.shouldStoreInvocationInDebugInfo {
204204
commandLine.appendFlag(.debugInfoStoreInvocation)
205205
}

Sources/SwiftDriver/Toolchains/DarwinToolchain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public final class DarwinToolchain: Toolchain {
108108

109109
public var shouldStoreInvocationInDebugInfo: Bool {
110110
// This matches the behavior in Clang.
111-
!(env["RC_DEBUG_OPTIONS"]?.isEmpty ?? false)
111+
!(env["RC_DEBUG_OPTIONS"]?.isEmpty ?? true)
112112
}
113113

114114
public func runtimeLibraryName(

0 commit comments

Comments
 (0)