Skip to content

Commit 12613c9

Browse files
committed
Fix conditional on 5.6
1 parent a442b53 commit 12613c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/debugger/buildConfig.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export class DebugConfigurationFactory {
131131
const swiftVersion = this.ctx.workspaceContext.toolchain.swiftVersion;
132132
if (
133133
swiftVersion.isLessThan(new Version(5, 7, 0)) &&
134-
swiftVersion.isGreaterThanOrEqual(new Version(5, 6, 0))
134+
swiftVersion.isGreaterThanOrEqual(new Version(5, 6, 0)) &&
135+
process.platform === "darwin"
135136
) {
136137
// if debugging on macOS with Swift 5.6 we need to create a custom launch
137138
// configuration so we can set the system architecture
@@ -226,9 +227,6 @@ export class DebugConfigurationFactory {
226227
if (this.ctx.swiftPackage.getTargets(TargetType.test).length === 0) {
227228
return null;
228229
}
229-
if (process.platform !== "darwin") {
230-
return null;
231-
}
232230

233231
let testFilterArg: string;
234232
const testList = this.testList.join(",");

0 commit comments

Comments
 (0)