Skip to content

Commit 4a42f25

Browse files
authored
Remove fallback in dummy-swiftc (#6867)
This fallback was a leftover from earlier development, but should be removed now since it isn't very portable as-is and isn't needed for the currently existing tests.
1 parent da66bb1 commit 4a42f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/dummy-swiftc/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if info.arguments.last == "-version" {
1818
if let swiftOriginalPath = env["SWIFT_ORIGINAL_PATH"] {
1919
swiftPath = swiftOriginalPath
2020
} else {
21-
swiftPath = "/usr/bin/swiftc"
21+
fatalError("need `SWIFT_ORIGINAL_PATH` in the environment")
2222
}
2323

2424
let result = try Process.popen(arguments: [swiftPath] + info.arguments.dropFirst())

0 commit comments

Comments
 (0)