Skip to content

Commit d7e6f7d

Browse files
authored
Merge pull request #84 from DougGregor/update-tsc
Update to a newer version of swift-tools-support-core
2 parents 0aa2178 + 6ecd35f commit d7e6f7d

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SwiftDriver/Execution/JobExecutor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ class ExecuteJobRule: LLBuildRule {
423423
context.delegateQueue.async {
424424
let result = ProcessResult(
425425
arguments: [],
426+
environment: env,
426427
exitStatus: .terminated(code: 1),
427428
output: Result.success([]),
428429
stderrOutput: Result.success([])

Sources/SwiftDriver/Incremental Compilation/IncrementalCompilation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public struct IncrementalCompilation {
146146
.map {$0.option.spelling}
147147
.sorted()
148148
.joined()
149-
return SHA256(hashInput).digestString()
149+
return SHA256().hash(hashInput).hexadecimalRepresentation
150150
}
151151
}
152152

Tests/SwiftDriverTests/JobExecutorTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class JobCollectingDelegate: JobExecutorDelegate {
2828
func waitUntilExit() throws -> ProcessResult {
2929
return ProcessResult(
3030
arguments: [],
31+
environment: [:],
3132
exitStatus: .terminated(code: 0),
3233
output: Result.success(ByteString("test").contents),
3334
stderrOutput: Result.success([])

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ final class SwiftDriverTests: XCTestCase {
830830
XCTAssertFalse(cmd.contains(.flag("-shared")))
831831
}
832832

833+
// FIXME: This test will fail when run on macOS, because
834+
// swift-autolink-extract is not present
835+
#if os(Linux)
833836
do {
834837
// linux target
835838
var driver = try Driver(args: commonArgs + ["-emit-library", "-target", "x86_64-unknown-linux"])
@@ -857,7 +860,11 @@ final class SwiftDriverTests: XCTestCase {
857860
XCTAssertFalse(cmd.contains(.flag("-dylib")))
858861
XCTAssertFalse(cmd.contains(.flag("-static")))
859862
}
863+
#endif
860864

865+
// FIXME: This test will fail when run on macOS, because
866+
// swift-autolink-extract is not present
867+
#if os(Linux)
861868
do {
862869
// static linux linking
863870
var driver = try Driver(args: commonArgs + ["-emit-library", "-static", "-target", "x86_64-unknown-linux"])
@@ -886,6 +893,7 @@ final class SwiftDriverTests: XCTestCase {
886893
XCTAssertFalse(cmd.contains(.flag("-static")))
887894
XCTAssertFalse(cmd.contains(.flag("-shared")))
888895
}
896+
#endif
889897
}
890898

891899
func testSanitizerArgs() throws {

0 commit comments

Comments
 (0)